InstanceArgs constructor

const InstanceArgs({
  1. Input<InstanceAddOn?>? addOn,
  2. required Input<String> availabilityZone,
  3. required Input<String> blueprintId,
  4. required Input<String> bundleId,
  5. Input<String?>? ipAddressType,
  6. Input<String?>? keyPairName,
  7. Input<String?>? name,
  8. Input<String?>? region,
  9. Input<Map<String, String>?>? tags,
  10. Input<String?>? userData,
})

Creates a new InstanceArgs. addOn Add-on configuration for the instance. See below. availabilityZone 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. blueprintId 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. bundleId Bundle of specification information. A list of available bundle IDs can be obtained using the AWS CLI command: aws lightsail get-bundles. ipAddressType IP address type of the Lightsail Instance. Valid values: dualstack, ipv4, ipv6. Default: dualstack. keyPairName Name of your key pair. Created in the Lightsail console (cannot use aws.ec2.KeyPair at this time). name Name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. tags 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 defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. userData Single lined launch script as a string to configure server with additional user data.

Implementation

const InstanceArgs({
  this.addOn,
  required this.availabilityZone,
  required this.blueprintId,
  required this.bundleId,
  this.ipAddressType,
  this.keyPairName,
  this.name,
  this.region,
  this.tags,
  this.userData,
});