InstanceArgs class
The set of arguments for Instance. The set of arguments for Instance.
Constructors
-
InstanceArgs({Input<
InstanceAddOn?> ? addOn, required Input<String> availabilityZone, required Input<String> blueprintId, required Input<String> bundleId, Input<String?> ? ipAddressType, Input<String?> ? keyPairName, Input<String?> ? name, Input<String?> ? region, Input<Map< ? tags, Input<String, String> ?>String?> ? userData}) -
Creates a new InstanceArgs.
addOnAdd-on configuration for the instance. See below.availabilityZoneAvailability Zone in which to create your instance. A list of available zones can be obtained using the AWS CLI command:aws lightsail get-regions --include-availability-zones.blueprintIdID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command:aws lightsail get-blueprints.bundleIdBundle of specification information. A list of available bundle IDs can be obtained using the AWS CLI command:aws lightsail get-bundles.ipAddressTypeIP address type of the Lightsail Instance. Valid values:dualstack,ipv4,ipv6. Default:dualstack.keyPairNameName of your key pair. Created in the Lightsail console (cannot useaws.ec2.KeyPairat this time).nameName of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.tagsMap of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.userDataSingle lined launch script as a string to configure server with additional user data.const -
InstanceArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
addOn
→ Input<
InstanceAddOn?> ? -
Add-on configuration for the instance. See below.
final
-
availabilityZone
→ Input<
String> -
Availability Zone in which to create your instance. A list of available zones can be obtained using the AWS CLI command:
aws lightsail get-regions --include-availability-zones.final -
blueprintId
→ Input<
String> -
ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command:
aws lightsail get-blueprints.final -
bundleId
→ Input<
String> -
Bundle of specification information. A list of available bundle IDs can be obtained using the AWS CLI command:
aws lightsail get-bundles.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
ipAddressType
→ Input<
String?> ? -
IP address type of the Lightsail Instance. Valid values:
dualstack,ipv4,ipv6. Default:dualstack.final -
keyPairName
→ Input<
String?> ? -
Name of your key pair. Created in the Lightsail console (cannot use
aws.ec2.KeyPairat this time).final -
name
→ Input<
String?> ? -
Name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.
final
-
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
userData
→ Input<
String?> ? -
Single lined launch script as a string to configure server with additional user data.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited