# ConnectionAliasAssociationProperty

Describes a connection alias association that is used for cross-Region redirection.

For more information, see [Cross-Region Redirection for Amazon WorkSpaces](https://docs.aws.amazon.com/workspaces/latest/adminguide/cross-region-redirection.html) .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspaces as workspaces } from 'aws-cdk-lib';
const connectionAliasAssociationProperty: workspaces.CfnConnectionAlias.ConnectionAliasAssociationProperty = {
  associatedAccountId: 'associatedAccountId',
  associationStatus: 'associationStatus',
  connectionIdentifier: 'connectionIdentifier',
  resourceId: 'resourceId',
};
```

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_workspaces as workspaces

connection_alias_association_property = workspaces.CfnConnectionAlias.ConnectionAliasAssociationProperty(
    associated_account_id="associatedAccountId",
    association_status="associationStatus",
    connection_identifier="connectionIdentifier",
    resource_id="resourceId"
)
```

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.workspaces.*;

ConnectionAliasAssociationProperty connectionAliasAssociationProperty = ConnectionAliasAssociationProperty.builder()
        .associatedAccountId("associatedAccountId")
        .associationStatus("associationStatus")
        .connectionIdentifier("connectionIdentifier")
        .resourceId("resourceId")
        .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.WorkSpaces;

var connectionAliasAssociationProperty = new ConnectionAliasAssociationProperty {
    AssociatedAccountId = "associatedAccountId",
    AssociationStatus = "associationStatus",
    ConnectionIdentifier = "connectionIdentifier",
    ResourceId = "resourceId"
};
```

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"

connectionAliasAssociationProperty := &ConnectionAliasAssociationProperty{
	AssociatedAccountId: jsii.String("associatedAccountId"),
	AssociationStatus: jsii.String("associationStatus"),
	ConnectionIdentifier: jsii.String("connectionIdentifier"),
	ResourceId: jsii.String("resourceId"),
}
```

## Properties

- `associatedAccountId`: string — The identifier of the AWS account that associated the connection alias with a directory.

- `associationStatus`: string — The association status of the connection alias.

- `connectionIdentifier`: string — The identifier of the connection alias association.

  You use the connection identifier in the DNS TXT record when you're configuring your DNS routing policies.

- `resourceId`: string — The identifier of the directory associated with a connection alias.
