# PlacementProperty

- Source: Generated at build time
- Type last changed: v2.217.0 · 25 Sep 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `availabilityZone`: string

- `groupId`: string

- `groupName`: string

- `partitionNumber`: number

- `tenancy`: string
