1. Packages
  2. Akamai
  3. API Docs
  4. IamCidrBlock
Akamai v8.1.0 published on Friday, Apr 11, 2025 by Pulumi

akamai.IamCidrBlock

Explore with Pulumi AI

Create IamCidrBlock Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new IamCidrBlock(name: string, args: IamCidrBlockArgs, opts?: CustomResourceOptions);
@overload
def IamCidrBlock(resource_name: str,
                 args: IamCidrBlockArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def IamCidrBlock(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 cidr_block: Optional[str] = None,
                 enabled: Optional[bool] = None,
                 comments: Optional[str] = None)
func NewIamCidrBlock(ctx *Context, name string, args IamCidrBlockArgs, opts ...ResourceOption) (*IamCidrBlock, error)
public IamCidrBlock(string name, IamCidrBlockArgs args, CustomResourceOptions? opts = null)
public IamCidrBlock(String name, IamCidrBlockArgs args)
public IamCidrBlock(String name, IamCidrBlockArgs args, CustomResourceOptions options)
type: akamai:IamCidrBlock
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IamCidrBlockArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IamCidrBlockArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IamCidrBlockArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IamCidrBlockArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IamCidrBlockArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var iamCidrBlockResource = new Akamai.IamCidrBlock("iamCidrBlockResource", new()
{
    CidrBlock = "string",
    Enabled = false,
    Comments = "string",
});
Copy
example, err := akamai.NewIamCidrBlock(ctx, "iamCidrBlockResource", &akamai.IamCidrBlockArgs{
	CidrBlock: pulumi.String("string"),
	Enabled:   pulumi.Bool(false),
	Comments:  pulumi.String("string"),
})
Copy
var iamCidrBlockResource = new IamCidrBlock("iamCidrBlockResource", IamCidrBlockArgs.builder()
    .cidrBlock("string")
    .enabled(false)
    .comments("string")
    .build());
Copy
iam_cidr_block_resource = akamai.IamCidrBlock("iamCidrBlockResource",
    cidr_block="string",
    enabled=False,
    comments="string")
Copy
const iamCidrBlockResource = new akamai.IamCidrBlock("iamCidrBlockResource", {
    cidrBlock: "string",
    enabled: false,
    comments: "string",
});
Copy
type: akamai:IamCidrBlock
properties:
    cidrBlock: string
    comments: string
    enabled: false
Copy

IamCidrBlock Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The IamCidrBlock resource accepts the following input properties:

CidrBlock This property is required. string
The value of an IP address or IP address range.
Enabled This property is required. bool
Enables the CIDR block on the account.
Comments string
Descriptive label you provide for the CIDR block.
CidrBlock This property is required. string
The value of an IP address or IP address range.
Enabled This property is required. bool
Enables the CIDR block on the account.
Comments string
Descriptive label you provide for the CIDR block.
cidrBlock This property is required. String
The value of an IP address or IP address range.
enabled This property is required. Boolean
Enables the CIDR block on the account.
comments String
Descriptive label you provide for the CIDR block.
cidrBlock This property is required. string
The value of an IP address or IP address range.
enabled This property is required. boolean
Enables the CIDR block on the account.
comments string
Descriptive label you provide for the CIDR block.
cidr_block This property is required. str
The value of an IP address or IP address range.
enabled This property is required. bool
Enables the CIDR block on the account.
comments str
Descriptive label you provide for the CIDR block.
cidrBlock This property is required. String
The value of an IP address or IP address range.
enabled This property is required. Boolean
Enables the CIDR block on the account.
comments String
Descriptive label you provide for the CIDR block.

Outputs

All input properties are implicitly available as output properties. Additionally, the IamCidrBlock resource produces the following output properties:

Actions IamCidrBlockActions
Specifies activities available for the CIDR block.
CidrBlockId int
Unique identifier for each CIDR block.
CreatedBy string
The user who created the CIDR block.
CreatedDate string
ISO 8601 timestamp indicating when the CIDR block was created.
Id string
The provider-assigned unique ID for this managed resource.
ModifiedBy string
The user who last edited the CIDR block.
ModifiedDate string
ISO 8601 timestamp indicating when the CIDR block was last modified.
Actions IamCidrBlockActions
Specifies activities available for the CIDR block.
CidrBlockId int
Unique identifier for each CIDR block.
CreatedBy string
The user who created the CIDR block.
CreatedDate string
ISO 8601 timestamp indicating when the CIDR block was created.
Id string
The provider-assigned unique ID for this managed resource.
ModifiedBy string
The user who last edited the CIDR block.
ModifiedDate string
ISO 8601 timestamp indicating when the CIDR block was last modified.
actions IamCidrBlockActions
Specifies activities available for the CIDR block.
cidrBlockId Integer
Unique identifier for each CIDR block.
createdBy String
The user who created the CIDR block.
createdDate String
ISO 8601 timestamp indicating when the CIDR block was created.
id String
The provider-assigned unique ID for this managed resource.
modifiedBy String
The user who last edited the CIDR block.
modifiedDate String
ISO 8601 timestamp indicating when the CIDR block was last modified.
actions IamCidrBlockActions
Specifies activities available for the CIDR block.
cidrBlockId number
Unique identifier for each CIDR block.
createdBy string
The user who created the CIDR block.
createdDate string
ISO 8601 timestamp indicating when the CIDR block was created.
id string
The provider-assigned unique ID for this managed resource.
modifiedBy string
The user who last edited the CIDR block.
modifiedDate string
ISO 8601 timestamp indicating when the CIDR block was last modified.
actions IamCidrBlockActions
Specifies activities available for the CIDR block.
cidr_block_id int
Unique identifier for each CIDR block.
created_by str
The user who created the CIDR block.
created_date str
ISO 8601 timestamp indicating when the CIDR block was created.
id str
The provider-assigned unique ID for this managed resource.
modified_by str
The user who last edited the CIDR block.
modified_date str
ISO 8601 timestamp indicating when the CIDR block was last modified.
actions Property Map
Specifies activities available for the CIDR block.
cidrBlockId Number
Unique identifier for each CIDR block.
createdBy String
The user who created the CIDR block.
createdDate String
ISO 8601 timestamp indicating when the CIDR block was created.
id String
The provider-assigned unique ID for this managed resource.
modifiedBy String
The user who last edited the CIDR block.
modifiedDate String
ISO 8601 timestamp indicating when the CIDR block was last modified.

Look up Existing IamCidrBlock Resource

Get an existing IamCidrBlock resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IamCidrBlockState, opts?: CustomResourceOptions): IamCidrBlock
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        actions: Optional[IamCidrBlockActionsArgs] = None,
        cidr_block: Optional[str] = None,
        cidr_block_id: Optional[int] = None,
        comments: Optional[str] = None,
        created_by: Optional[str] = None,
        created_date: Optional[str] = None,
        enabled: Optional[bool] = None,
        modified_by: Optional[str] = None,
        modified_date: Optional[str] = None) -> IamCidrBlock
func GetIamCidrBlock(ctx *Context, name string, id IDInput, state *IamCidrBlockState, opts ...ResourceOption) (*IamCidrBlock, error)
public static IamCidrBlock Get(string name, Input<string> id, IamCidrBlockState? state, CustomResourceOptions? opts = null)
public static IamCidrBlock get(String name, Output<String> id, IamCidrBlockState state, CustomResourceOptions options)
resources:  _:    type: akamai:IamCidrBlock    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Actions IamCidrBlockActions
Specifies activities available for the CIDR block.
CidrBlock string
The value of an IP address or IP address range.
CidrBlockId int
Unique identifier for each CIDR block.
Comments string
Descriptive label you provide for the CIDR block.
CreatedBy string
The user who created the CIDR block.
CreatedDate string
ISO 8601 timestamp indicating when the CIDR block was created.
Enabled bool
Enables the CIDR block on the account.
ModifiedBy string
The user who last edited the CIDR block.
ModifiedDate string
ISO 8601 timestamp indicating when the CIDR block was last modified.
Actions IamCidrBlockActionsArgs
Specifies activities available for the CIDR block.
CidrBlock string
The value of an IP address or IP address range.
CidrBlockId int
Unique identifier for each CIDR block.
Comments string
Descriptive label you provide for the CIDR block.
CreatedBy string
The user who created the CIDR block.
CreatedDate string
ISO 8601 timestamp indicating when the CIDR block was created.
Enabled bool
Enables the CIDR block on the account.
ModifiedBy string
The user who last edited the CIDR block.
ModifiedDate string
ISO 8601 timestamp indicating when the CIDR block was last modified.
actions IamCidrBlockActions
Specifies activities available for the CIDR block.
cidrBlock String
The value of an IP address or IP address range.
cidrBlockId Integer
Unique identifier for each CIDR block.
comments String
Descriptive label you provide for the CIDR block.
createdBy String
The user who created the CIDR block.
createdDate String
ISO 8601 timestamp indicating when the CIDR block was created.
enabled Boolean
Enables the CIDR block on the account.
modifiedBy String
The user who last edited the CIDR block.
modifiedDate String
ISO 8601 timestamp indicating when the CIDR block was last modified.
actions IamCidrBlockActions
Specifies activities available for the CIDR block.
cidrBlock string
The value of an IP address or IP address range.
cidrBlockId number
Unique identifier for each CIDR block.
comments string
Descriptive label you provide for the CIDR block.
createdBy string
The user who created the CIDR block.
createdDate string
ISO 8601 timestamp indicating when the CIDR block was created.
enabled boolean
Enables the CIDR block on the account.
modifiedBy string
The user who last edited the CIDR block.
modifiedDate string
ISO 8601 timestamp indicating when the CIDR block was last modified.
actions IamCidrBlockActionsArgs
Specifies activities available for the CIDR block.
cidr_block str
The value of an IP address or IP address range.
cidr_block_id int
Unique identifier for each CIDR block.
comments str
Descriptive label you provide for the CIDR block.
created_by str
The user who created the CIDR block.
created_date str
ISO 8601 timestamp indicating when the CIDR block was created.
enabled bool
Enables the CIDR block on the account.
modified_by str
The user who last edited the CIDR block.
modified_date str
ISO 8601 timestamp indicating when the CIDR block was last modified.
actions Property Map
Specifies activities available for the CIDR block.
cidrBlock String
The value of an IP address or IP address range.
cidrBlockId Number
Unique identifier for each CIDR block.
comments String
Descriptive label you provide for the CIDR block.
createdBy String
The user who created the CIDR block.
createdDate String
ISO 8601 timestamp indicating when the CIDR block was created.
enabled Boolean
Enables the CIDR block on the account.
modifiedBy String
The user who last edited the CIDR block.
modifiedDate String
ISO 8601 timestamp indicating when the CIDR block was last modified.

Supporting Types

IamCidrBlockActions
, IamCidrBlockActionsArgs

Delete bool
Whether you can delete this CIDR block. You can't delete a CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.
Edit bool
Whether you can edit this CIDR block. You can't edit CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.
Delete bool
Whether you can delete this CIDR block. You can't delete a CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.
Edit bool
Whether you can edit this CIDR block. You can't edit CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.
delete Boolean
Whether you can delete this CIDR block. You can't delete a CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.
edit Boolean
Whether you can edit this CIDR block. You can't edit CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.
delete boolean
Whether you can delete this CIDR block. You can't delete a CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.
edit boolean
Whether you can edit this CIDR block. You can't edit CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.
delete bool
Whether you can delete this CIDR block. You can't delete a CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.
edit bool
Whether you can edit this CIDR block. You can't edit CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.
delete Boolean
Whether you can delete this CIDR block. You can't delete a CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.
edit Boolean
Whether you can edit this CIDR block. You can't edit CIDR block from an IP address not on the allowlist, or if the CIDR block is the only one on the allowlist.

Package Details

Repository
Akamai pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.