AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Lightsail::StaticIp

CfnStaticIp

The `AWS::Lightsail::StaticIp` resource specifies a static IP that can be attached to an Amazon Lightsail instance that is in the same AWS Region and Availability Zone.

Import

import { CfnStaticIp } from 'aws-cdk-lib/aws-lightsail';

Or use the module namespace:

import * as lightsail from 'aws-cdk-lib/aws-lightsail';
// lightsail.CfnStaticIp

Properties

Configuration passed to the constructor as CfnStaticIpProps.

staticIpNameRequired
string

The name of the static IP.

attachedToOptional
string

The instance that the static IP is attached to.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter