Skip to content
v2.278.0

LocationProperty ​

Struct External

Location is a property of the AWS::Lightsail::Instance resource. It describes the location for an instance.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as lightsail } from 'aws-cdk-lib';
const locationProperty: lightsail.CfnInstance.LocationProperty = {
  availabilityZone: 'availabilityZone',
  regionName: 'regionName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lightsail as lightsail

location_property = lightsail.CfnInstance.LocationProperty(
    availability_zone="availabilityZone",
    region_name="regionName"
)
java
// 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.*;

LocationProperty locationProperty = LocationProperty.builder()
        .availabilityZone("availabilityZone")
        .regionName("regionName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 locationProperty = new LocationProperty {
    AvailabilityZone = "availabilityZone",
    RegionName = "regionName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

locationProperty := &LocationProperty{
	AvailabilityZone: jsii.String("availabilityZone"),
	RegionName: jsii.String("regionName"),
}

Properties ​

availabilityZoneoptionalstringavailability_zoneoptionalstravailabilityZoneoptionalStringAvailabilityZoneoptionalstringAvailabilityZoneoptional*string #
The Availability Zone for the instance.
regionNameoptionalstringregion_nameoptionalstrregionNameoptionalStringRegionNameoptionalstringRegionNameoptional*string #
The name of the AWS Region for the instance.