PlacementProperty Struct
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspacesinstances as workspacesinstances } from 'aws-cdk-lib';
const placementProperty: workspacesinstances.CfnWorkspaceInstance.PlacementProperty = {
availabilityZone: 'availabilityZone',
groupId: 'groupId',
groupName: 'groupName',
partitionNumber: 123,
tenancy: 'tenancy',
};
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_workspacesinstances as workspacesinstances
placement_property = workspacesinstances.CfnWorkspaceInstance.PlacementProperty(
availability_zone="availabilityZone",
group_id="groupId",
group_name="groupName",
partition_number=123,
tenancy="tenancy"
)
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.workspacesinstances.*;
PlacementProperty placementProperty = PlacementProperty.builder()
.availabilityZone("availabilityZone")
.groupId("groupId")
.groupName("groupName")
.partitionNumber(123)
.tenancy("tenancy")
.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.WorkspacesInstances;
var placementProperty = new PlacementProperty {
AvailabilityZone = "availabilityZone",
GroupId = "groupId",
GroupName = "groupName",
PartitionNumber = 123,
Tenancy = "tenancy"
};
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"
placementProperty := &PlacementProperty{
AvailabilityZone: jsii.String("availabilityZone"),
GroupId: jsii.String("groupId"),
GroupName: jsii.String("groupName"),
PartitionNumber: jsii.Number(123),
Tenancy: jsii.String("tenancy"),
}
Properties
availabilityZoneoptionalstringavailability_zoneoptionalstravailabilityZoneoptionalStringAvailabilityZoneoptionalstringAvailabilityZoneoptional*string #groupIdoptionalstringgroup_idoptionalstrgroupIdoptionalStringGroupIdoptionalstringGroupIdoptional*string #groupNameoptionalstringgroup_nameoptionalstrgroupNameoptionalStringGroupNameoptionalstringGroupNameoptional*string #partitionNumberoptionalnumberpartition_numberoptionalint | floatpartitionNumberoptionalNumberPartitionNumberoptionaldoublePartitionNumberoptional*float64 #tenancyoptionalstringtenancyoptionalstrtenancyoptionalStringTenancyoptionalstringTenancyoptional*string #