@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.670Z") @Stability(value=Stable) public class CfnStaticIp extends CfnResource implements IInspectable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lightsail.*;
CfnStaticIp cfnStaticIp = CfnStaticIp.Builder.create(this, "MyCfnStaticIp")
.staticIpName("staticIpName")
// the properties below are optional
.attachedTo("attachedTo")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnStaticIp.Builder
A fluent builder for
CfnStaticIp. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnStaticIp(software.constructs.Construct scope,
String id,
CfnStaticIpProps props)
Create a new `AWS::Lightsail::StaticIp`.
|
protected |
CfnStaticIp(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnStaticIp(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttachedTo()
The instance that the static IP is attached to.
|
String |
getAttrIpAddress()
The IP address of the static IP.
|
IResolvable |
getAttrIsAttached()
A Boolean value indicating whether the static IP is attached to an instance.
|
String |
getAttrStaticIpArn()
The Amazon Resource Name (ARN) of the static IP (for example, `arn:aws:lightsail:us-east-2:123456789101:StaticIp/244ad76f-8aad-4741-809f-12345EXAMPLE` ).
|
protected Map<String,Object> |
getCfnProperties() |
String |
getStaticIpName()
The name of the static IP.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAttachedTo(String value)
The instance that the static IP is attached to.
|
void |
setStaticIpName(String value)
The name of the static IP.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnStaticIp(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnStaticIp(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnStaticIp(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnStaticIpProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrIpAddress()
@Stability(value=Stable) @NotNull public IResolvable getAttrIsAttached()
@Stability(value=Stable) @NotNull public String getAttrStaticIpArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getStaticIpName()
@Stability(value=Stable)
public void setStaticIpName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getAttachedTo()
@Stability(value=Stable)
public void setAttachedTo(@Nullable
String value)
Copyright © 2022. All rights reserved.