aiven.StaticIp
Explore with Pulumi AI
The aiven.StaticIp resource allows the creation and deletion of static ips. Please note that once a static ip is in the ‘assigned’ state it is bound to the node it is assigned to and cannot be deleted or disassociated until the node is recycled. Plans that would delete static ips that are in the assigned state will be blocked.
Create StaticIp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StaticIp(name: string, args: StaticIpArgs, opts?: CustomResourceOptions);
@overload
def StaticIp(resource_name: str,
args: StaticIpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StaticIp(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloud_name: Optional[str] = None,
project: Optional[str] = None)
func NewStaticIp(ctx *Context, name string, args StaticIpArgs, opts ...ResourceOption) (*StaticIp, error)
public StaticIp(string name, StaticIpArgs args, CustomResourceOptions? opts = null)
public StaticIp(String name, StaticIpArgs args)
public StaticIp(String name, StaticIpArgs args, CustomResourceOptions options)
type: aiven:StaticIp
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 StaticIpArgs
- 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 StaticIpArgs
- 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 StaticIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StaticIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StaticIpArgs
- 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 staticIpResource = new Aiven.StaticIp("staticIpResource", new()
{
CloudName = "string",
Project = "string",
});
example, err := aiven.NewStaticIp(ctx, "staticIpResource", &aiven.StaticIpArgs{
CloudName: pulumi.String("string"),
Project: pulumi.String("string"),
})
var staticIpResource = new StaticIp("staticIpResource", StaticIpArgs.builder()
.cloudName("string")
.project("string")
.build());
static_ip_resource = aiven.StaticIp("staticIpResource",
cloud_name="string",
project="string")
const staticIpResource = new aiven.StaticIp("staticIpResource", {
cloudName: "string",
project: "string",
});
type: aiven:StaticIp
properties:
cloudName: string
project: string
StaticIp 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 StaticIp resource accepts the following input properties:
- Cloud
Name string - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Cloud
Name string - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- cloud
Name String - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- cloud
Name string - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- cloud_
name str - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- project str
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- cloud
Name String - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the StaticIp resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - The address of the static ip.
- Service
Name string - The service name the static ip is associated with.
- State string
- The state the static ip is in.
- Static
Ip stringAddress Id - The static ip id of the resource. Should be used as a reference elsewhere.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - The address of the static ip.
- Service
Name string - The service name the static ip is associated with.
- State string
- The state the static ip is in.
- Static
Ip stringAddress Id - The static ip id of the resource. Should be used as a reference elsewhere.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - The address of the static ip.
- service
Name String - The service name the static ip is associated with.
- state String
- The state the static ip is in.
- static
Ip StringAddress Id - The static ip id of the resource. Should be used as a reference elsewhere.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - The address of the static ip.
- service
Name string - The service name the static ip is associated with.
- state string
- The state the static ip is in.
- static
Ip stringAddress Id - The static ip id of the resource. Should be used as a reference elsewhere.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - The address of the static ip.
- service_
name str - The service name the static ip is associated with.
- state str
- The state the static ip is in.
- static_
ip_ straddress_ id - The static ip id of the resource. Should be used as a reference elsewhere.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - The address of the static ip.
- service
Name String - The service name the static ip is associated with.
- state String
- The state the static ip is in.
- static
Ip StringAddress Id - The static ip id of the resource. Should be used as a reference elsewhere.
Look up Existing StaticIp Resource
Get an existing StaticIp 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?: StaticIpState, opts?: CustomResourceOptions): StaticIp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloud_name: Optional[str] = None,
ip_address: Optional[str] = None,
project: Optional[str] = None,
service_name: Optional[str] = None,
state: Optional[str] = None,
static_ip_address_id: Optional[str] = None) -> StaticIp
func GetStaticIp(ctx *Context, name string, id IDInput, state *StaticIpState, opts ...ResourceOption) (*StaticIp, error)
public static StaticIp Get(string name, Input<string> id, StaticIpState? state, CustomResourceOptions? opts = null)
public static StaticIp get(String name, Output<String> id, StaticIpState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Cloud
Name string - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- Ip
Address string - The address of the static ip.
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Service
Name string - The service name the static ip is associated with.
- State string
- The state the static ip is in.
- Static
Ip stringAddress Id - The static ip id of the resource. Should be used as a reference elsewhere.
- Cloud
Name string - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- Ip
Address string - The address of the static ip.
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Service
Name string - The service name the static ip is associated with.
- State string
- The state the static ip is in.
- Static
Ip stringAddress Id - The static ip id of the resource. Should be used as a reference elsewhere.
- cloud
Name String - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- ip
Address String - The address of the static ip.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name String - The service name the static ip is associated with.
- state String
- The state the static ip is in.
- static
Ip StringAddress Id - The static ip id of the resource. Should be used as a reference elsewhere.
- cloud
Name string - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- ip
Address string - The address of the static ip.
- project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name string - The service name the static ip is associated with.
- state string
- The state the static ip is in.
- static
Ip stringAddress Id - The static ip id of the resource. Should be used as a reference elsewhere.
- cloud_
name str - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- ip_
address str - The address of the static ip.
- project str
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service_
name str - The service name the static ip is associated with.
- state str
- The state the static ip is in.
- static_
ip_ straddress_ id - The static ip id of the resource. Should be used as a reference elsewhere.
- cloud
Name String - Specifies the cloud that the static ip belongs to. Changing this property forces recreation of the resource.
- ip
Address String - The address of the static ip.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name String - The service name the static ip is associated with.
- state String
- The state the static ip is in.
- static
Ip StringAddress Id - The static ip id of the resource. Should be used as a reference elsewhere.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.