cpln.IpSet
Explore with Pulumi AI
Manages an org’s IpSet.
Declaration
Required
- name (String) Name of the IpSet.
Optional
- description - (String) Description of the IpSet.
- tags (Map of String) Key-value map of resource tags.
- link (String) The self link of a workload or a GVC.
- location (Block List) (see below).
location
Required:
- name (String) The self link of a location.
- retention_policy (String) Exactly one of:
keep
andfree
.
Outputs
The following attributes are exported:
- cpln_id (String) The ID, in GUID format, of the IpSet.
- self_link (String) Full link to this resource. Can be referenced by other resources.
- status (Block List, Max: 1) (see below).
status
Status of the IpSet.
Read-Only:
- ip_address (Block List) (see below)
- error (String)
- warning (String)
status.ip_address
- name (String)
- ip (String)
- id (String)
- state (String)
- created (String)
Example Usage
resource "cpln_ipset" "new" {
name = "example"
description = "example"
tags = {
terraform_generated = "true"
}
link = "SELF_LINK_TO_WORKLOAD"
location {
name = "SELF_LINK_TO_LOCATION"
retention_policy = "keep"
}
}
Create IpSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpSet(name: string, args?: IpSetArgs, opts?: CustomResourceOptions);
@overload
def IpSet(resource_name: str,
args: Optional[IpSetArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def IpSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
link: Optional[str] = None,
locations: Optional[Sequence[IpSetLocationArgs]] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewIpSet(ctx *Context, name string, args *IpSetArgs, opts ...ResourceOption) (*IpSet, error)
public IpSet(string name, IpSetArgs? args = null, CustomResourceOptions? opts = null)
type: cpln:IpSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IpSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IpSetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IpSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpSetArgs
- 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 ipSetResource = new Cpln.IpSet("ipSetResource", new()
{
Description = "string",
Link = "string",
Locations = new[]
{
new Cpln.Inputs.IpSetLocationArgs
{
Name = "string",
RetentionPolicy = "string",
},
},
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := cpln.NewIpSet(ctx, "ipSetResource", &cpln.IpSetArgs{
Description: pulumi.String("string"),
Link: pulumi.String("string"),
Locations: cpln.IpSetLocationArray{
&cpln.IpSetLocationArgs{
Name: pulumi.String("string"),
RetentionPolicy: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var ipSetResource = new IpSet("ipSetResource", IpSetArgs.builder()
.description("string")
.link("string")
.locations(IpSetLocationArgs.builder()
.name("string")
.retentionPolicy("string")
.build())
.name("string")
.tags(Map.of("string", "string"))
.build());
ip_set_resource = cpln.IpSet("ipSetResource",
description="string",
link="string",
locations=[{
"name": "string",
"retention_policy": "string",
}],
name="string",
tags={
"string": "string",
})
const ipSetResource = new cpln.IpSet("ipSetResource", {
description: "string",
link: "string",
locations: [{
name: "string",
retentionPolicy: "string",
}],
name: "string",
tags: {
string: "string",
},
});
type: cpln:IpSet
properties:
description: string
link: string
locations:
- name: string
retentionPolicy: string
name: string
tags:
string: string
IpSet 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 IpSet resource accepts the following input properties:
- Description string
- Description of the IP Set.
- Link string
- The self link of a workload or a GVC.
- Locations
List<Pulumiverse.
Cpln. Inputs. Ip Set Location> - Name string
- Name of the IP Set.
- Dictionary<string, string>
- Key-value map of resource tags.
- Description string
- Description of the IP Set.
- Link string
- The self link of a workload or a GVC.
- Locations
[]Ip
Set Location Args - Name string
- Name of the IP Set.
- map[string]string
- Key-value map of resource tags.
- description String
- Description of the IP Set.
- link String
- The self link of a workload or a GVC.
- locations
List<Ip
Set Location> - name String
- Name of the IP Set.
- Map<String,String>
- Key-value map of resource tags.
- description string
- Description of the IP Set.
- link string
- The self link of a workload or a GVC.
- locations
Ip
Set Location[] - name string
- Name of the IP Set.
- {[key: string]: string}
- Key-value map of resource tags.
- description str
- Description of the IP Set.
- link str
- The self link of a workload or a GVC.
- locations
Sequence[Ip
Set Location Args] - name str
- Name of the IP Set.
- Mapping[str, str]
- Key-value map of resource tags.
- description String
- Description of the IP Set.
- link String
- The self link of a workload or a GVC.
- locations List<Property Map>
- name String
- Name of the IP Set.
- Map<String>
- Key-value map of resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the IpSet resource produces the following output properties:
- Cpln
Id string - The ID, in GUID format, of the IP Set.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Statuses
List<Pulumiverse.
Cpln. Outputs. Ip Set Status> - The status of the IP Set.
- Cpln
Id string - The ID, in GUID format, of the IP Set.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Statuses
[]Ip
Set Status - The status of the IP Set.
- cpln
Id String - The ID, in GUID format, of the IP Set.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String - Full link to this resource. Can be referenced by other resources.
- statuses
List<Ip
Set Status> - The status of the IP Set.
- cpln
Id string - The ID, in GUID format, of the IP Set.
- id string
- The provider-assigned unique ID for this managed resource.
- self
Link string - Full link to this resource. Can be referenced by other resources.
- statuses
Ip
Set Status[] - The status of the IP Set.
- cpln_
id str - The ID, in GUID format, of the IP Set.
- id str
- The provider-assigned unique ID for this managed resource.
- self_
link str - Full link to this resource. Can be referenced by other resources.
- statuses
Sequence[Ip
Set Status] - The status of the IP Set.
- cpln
Id String - The ID, in GUID format, of the IP Set.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String - Full link to this resource. Can be referenced by other resources.
- statuses List<Property Map>
- The status of the IP Set.
Look up Existing IpSet Resource
Get an existing IpSet 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?: IpSetState, opts?: CustomResourceOptions): IpSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cpln_id: Optional[str] = None,
description: Optional[str] = None,
link: Optional[str] = None,
locations: Optional[Sequence[IpSetLocationArgs]] = None,
name: Optional[str] = None,
self_link: Optional[str] = None,
statuses: Optional[Sequence[IpSetStatusArgs]] = None,
tags: Optional[Mapping[str, str]] = None) -> IpSet
func GetIpSet(ctx *Context, name string, id IDInput, state *IpSetState, opts ...ResourceOption) (*IpSet, error)
public static IpSet Get(string name, Input<string> id, IpSetState? state, CustomResourceOptions? opts = null)
public static IpSet get(String name, Output<String> id, IpSetState state, CustomResourceOptions options)
resources: _: type: cpln:IpSet get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Cpln
Id string - The ID, in GUID format, of the IP Set.
- Description string
- Description of the IP Set.
- Link string
- The self link of a workload or a GVC.
- Locations
List<Pulumiverse.
Cpln. Inputs. Ip Set Location> - Name string
- Name of the IP Set.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Statuses
List<Pulumiverse.
Cpln. Inputs. Ip Set Status> - The status of the IP Set.
- Dictionary<string, string>
- Key-value map of resource tags.
- Cpln
Id string - The ID, in GUID format, of the IP Set.
- Description string
- Description of the IP Set.
- Link string
- The self link of a workload or a GVC.
- Locations
[]Ip
Set Location Args - Name string
- Name of the IP Set.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Statuses
[]Ip
Set Status Args - The status of the IP Set.
- map[string]string
- Key-value map of resource tags.
- cpln
Id String - The ID, in GUID format, of the IP Set.
- description String
- Description of the IP Set.
- link String
- The self link of a workload or a GVC.
- locations
List<Ip
Set Location> - name String
- Name of the IP Set.
- self
Link String - Full link to this resource. Can be referenced by other resources.
- statuses
List<Ip
Set Status> - The status of the IP Set.
- Map<String,String>
- Key-value map of resource tags.
- cpln
Id string - The ID, in GUID format, of the IP Set.
- description string
- Description of the IP Set.
- link string
- The self link of a workload or a GVC.
- locations
Ip
Set Location[] - name string
- Name of the IP Set.
- self
Link string - Full link to this resource. Can be referenced by other resources.
- statuses
Ip
Set Status[] - The status of the IP Set.
- {[key: string]: string}
- Key-value map of resource tags.
- cpln_
id str - The ID, in GUID format, of the IP Set.
- description str
- Description of the IP Set.
- link str
- The self link of a workload or a GVC.
- locations
Sequence[Ip
Set Location Args] - name str
- Name of the IP Set.
- self_
link str - Full link to this resource. Can be referenced by other resources.
- statuses
Sequence[Ip
Set Status Args] - The status of the IP Set.
- Mapping[str, str]
- Key-value map of resource tags.
- cpln
Id String - The ID, in GUID format, of the IP Set.
- description String
- Description of the IP Set.
- link String
- The self link of a workload or a GVC.
- locations List<Property Map>
- name String
- Name of the IP Set.
- self
Link String - Full link to this resource. Can be referenced by other resources.
- statuses List<Property Map>
- The status of the IP Set.
- Map<String>
- Key-value map of resource tags.
Supporting Types
IpSetLocation, IpSetLocationArgs
- Name string
- The self link of a location.
- Retention
Policy string
- Name string
- The self link of a location.
- Retention
Policy string
- name String
- The self link of a location.
- retention
Policy String
- name string
- The self link of a location.
- retention
Policy string
- name str
- The self link of a location.
- retention_
policy str
- name String
- The self link of a location.
- retention
Policy String
IpSetStatus, IpSetStatusArgs
- Error string
- Ip
Addresses []IpSet Status Ip Address - Warning string
- error String
- ip
Addresses List<IpSet Status Ip Address> - warning String
- error string
- ip
Addresses IpSet Status Ip Address[] - warning string
- error String
- ip
Addresses List<Property Map> - warning String
IpSetStatusIpAddress, IpSetStatusIpAddressArgs
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cpln
Terraform Provider.