Class StaticIp
Allocates a static IP address.
Note: Lightsail is currently only supported in a limited number of AWS Regions, please see "Regions and Availability Zones in Amazon Lightsail" for more details
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var test = new Aws.LightSail.StaticIp("test", new Aws.LightSail.StaticIpArgs
{
});
}
}
Inherited Members
Namespace: Pulumi.Aws.LightSail
Assembly: Pulumi.Aws.dll
Syntax
public class StaticIp : CustomResource
Constructors
View SourceStaticIp(String, StaticIpArgs, CustomResourceOptions)
Create a StaticIp resource with the given unique name, arguments, and options.
Declaration
public StaticIp(string name, StaticIpArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| StaticIpArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN of the Lightsail static IP
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IpAddress
The allocated static IP address
Declaration
public Output<string> IpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name for the allocated static IP
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SupportCode
The support code.
Declaration
public Output<string> SupportCode { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, StaticIpState, CustomResourceOptions)
Get an existing StaticIp resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static StaticIp Get(string name, Input<string> id, StaticIpState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| StaticIpState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| StaticIp |