Class CfnInstanceProps.Jsii$Proxy
- All Implemented Interfaces:
CfnInstanceProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnInstanceProps
CfnInstanceProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.lightsail.CfnInstanceProps
CfnInstanceProps.Builder, CfnInstanceProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(CfnInstanceProps.Builder builder) Constructor that initializes the object based on literal property values passed by theCfnInstanceProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal ObjectAn array of add-ons for the instance.final StringThe Availability Zone for the instance.final StringThe blueprint ID for the instance (for example,os_amlinux_2016_03).final StringThe bundle ID for the instance (for example,micro_1_0).final ObjectThe hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM.final StringThe name of the instance.final StringThe name of the key pair to use for the instance.final ObjectThe location for the instance, such as the AWS Region and Availability Zone.final ObjectThe public ports and the monthly amount of data transfer allocated for the instance.final ObjectgetState()The status code and the state (for example,running) of the instance.getTags()An array of key-value pairs to apply to this resource.final StringThe optional launch script for the instance.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnInstanceProps.Builder.
-
-
Method Details
-
getBlueprintId
Description copied from interface:CfnInstancePropsThe blueprint ID for the instance (for example,os_amlinux_2016_03).- Specified by:
getBlueprintIdin interfaceCfnInstanceProps- See Also:
-
getBundleId
Description copied from interface:CfnInstancePropsThe bundle ID for the instance (for example,micro_1_0).- Specified by:
getBundleIdin interfaceCfnInstanceProps- See Also:
-
getInstanceName
Description copied from interface:CfnInstancePropsThe name of the instance.- Specified by:
getInstanceNamein interfaceCfnInstanceProps- See Also:
-
getAddOns
Description copied from interface:CfnInstancePropsAn array of add-ons for the instance.If the instance has an add-on enabled when performing a delete instance request, the add-on is automatically disabled before the instance is deleted.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstance.AddOnProperty>- Specified by:
getAddOnsin interfaceCfnInstanceProps- See Also:
-
getAvailabilityZone
Description copied from interface:CfnInstancePropsThe Availability Zone for the instance.- Specified by:
getAvailabilityZonein interfaceCfnInstanceProps- See Also:
-
getHardware
Description copied from interface:CfnInstancePropsThe hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM.The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it.
Returns union: either
IResolvableorCfnInstance.HardwareProperty- Specified by:
getHardwarein interfaceCfnInstanceProps- See Also:
-
getKeyPairName
Description copied from interface:CfnInstancePropsThe name of the key pair to use for the instance.If no key pair name is specified, the Regional Lightsail default key pair is used.
- Specified by:
getKeyPairNamein interfaceCfnInstanceProps- See Also:
-
getLocation
Description copied from interface:CfnInstancePropsThe location for the instance, such as the AWS Region and Availability Zone.The
Locationproperty is read-only and should not be specified in a create instance or update instance request.Returns union: either
IResolvableorCfnInstance.LocationProperty- Specified by:
getLocationin interfaceCfnInstanceProps- See Also:
-
getNetworking
Description copied from interface:CfnInstancePropsThe public ports and the monthly amount of data transfer allocated for the instance.Returns union: either
IResolvableorCfnInstance.NetworkingProperty- Specified by:
getNetworkingin interfaceCfnInstanceProps- See Also:
-
getState
Description copied from interface:CfnInstancePropsThe status code and the state (for example,running) of the instance.The
Stateproperty is read-only and should not be specified in a create instance or update instance request.Returns union: either
IResolvableorCfnInstance.StateProperty- Specified by:
getStatein interfaceCfnInstanceProps- See Also:
-
getTags
Description copied from interface:CfnInstancePropsAn array of key-value pairs to apply to this resource.For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.- Specified by:
getTagsin interfaceCfnInstanceProps- See Also:
-
getUserData
Description copied from interface:CfnInstancePropsThe optional launch script for the instance.Specify a launch script to configure an instance with additional user data. For example, you might want to specify
apt-get -y updateas a launch script.Depending on the blueprint of your instance, the command to get software on your instance varies. Amazon Linux and CentOS use
yum, Debian and Ubuntu useapt-get, and FreeBSD usespkg.- Specified by:
getUserDatain interfaceCfnInstanceProps- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-