Class 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.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnStaticIp : CfnResource, IInspectable
Syntax (vb)
Public Class CfnStaticIp
Inherits CfnResource
Implements IInspectable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-staticip.html
CloudformationResource: AWS::Lightsail::StaticIp
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lightsail;
var cfnStaticIp = new CfnStaticIp(this, "MyCfnStaticIp", new CfnStaticIpProps {
StaticIpName = "staticIpName",
// the properties below are optional
AttachedTo = "attachedTo"
});
Synopsis
Constructors
CfnStaticIp(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnStaticIp(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnStaticIp(Construct, String, ICfnStaticIpProps) |
Properties
AttachedTo | The instance that the static IP is attached to. |
AttrIpAddress | The IP address of the static IP. |
AttrIsAttached | A Boolean value indicating whether the static IP is attached to an instance. |
AttrStaticIpArn | The Amazon Resource Name (ARN) of the static IP (for example, |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
StaticIpName | The name of the static IP. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnStaticIp(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnStaticIp(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnStaticIp(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnStaticIp(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnStaticIp(Construct, String, ICfnStaticIpProps)
public CfnStaticIp(Construct scope, string id, ICfnStaticIpProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnStaticIpProps
Resource properties.
Properties
AttachedTo
The instance that the static IP is attached to.
public virtual string AttachedTo { get; set; }
Property Value
System.String
AttrIpAddress
The IP address of the static IP.
public virtual string AttrIpAddress { get; }
Property Value
System.String
Remarks
CloudformationAttribute: IpAddress
AttrIsAttached
A Boolean value indicating whether the static IP is attached to an instance.
public virtual IResolvable AttrIsAttached { get; }
Property Value
Remarks
CloudformationAttribute: IsAttached
AttrStaticIpArn
The Amazon Resource Name (ARN) of the static IP (for example, arn:aws:lightsail:us-east-2:123456789101:StaticIp/244ad76f-8aad-4741-809f-12345EXAMPLE
).
public virtual string AttrStaticIpArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: StaticIpArn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
StaticIpName
The name of the static IP.
public virtual string StaticIpName { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>