Skip to content
v2.278.0

StaticIpReference Struct ​

A reference to a StaticIp resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as interfaces_lightsail } from 'aws-cdk-lib/interfaces';
const staticIpReference: interfaces_lightsail.StaticIpReference = {
  staticIpArn: 'staticIpArn',
  staticIpName: 'staticIpName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_lightsail as interfaces_lightsail

static_ip_reference = interfaces_lightsail.StaticIpReference(
    static_ip_arn="staticIpArn",
    static_ip_name="staticIpName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.lightsail.*;

StaticIpReference staticIpReference = StaticIpReference.builder()
        .staticIpArn("staticIpArn")
        .staticIpName("staticIpName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.Lightsail;

var staticIpReference = new StaticIpReference {
    StaticIpArn = "staticIpArn",
    StaticIpName = "staticIpName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

staticIpReference := &StaticIpReference{
	StaticIpArn: jsii.String("staticIpArn"),
	StaticIpName: jsii.String("staticIpName"),
}

Properties ​

staticIpArnstringstatic_ip_arnstrstaticIpArnStringStaticIpArnstringStaticIpArn*string required #
The ARN of the StaticIp resource.
staticIpNamestringstatic_ip_namestrstaticIpNameStringStaticIpNamestringStaticIpName*string required #
The StaticIpName of the StaticIp resource.