# FSxWindowsFileServerVolumeConfigurationProperty

This parameter is specified when you're using [Amazon FSx for Windows File Server](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/what-is.html) file system for task storage.

For more information and the input format, see [Amazon FSx for Windows File Server volumes](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/wfsx-volumes.html) in the *Amazon Elastic Container Service Developer Guide* .

- Source: Generated at build time
- Type last changed: v2.138.0 · 18 Apr 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const fSxWindowsFileServerVolumeConfigurationProperty: ecs.CfnTaskDefinition.FSxWindowsFileServerVolumeConfigurationProperty = {
  fileSystemId: 'fileSystemId',
  rootDirectory: 'rootDirectory',

  // the properties below are optional
  authorizationConfig: {
    credentialsParameter: 'credentialsParameter',
    domain: 'domain',
  },
};
```

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_ecs as ecs

f_sx_windows_file_server_volume_configuration_property = ecs.CfnTaskDefinition.FSxWindowsFileServerVolumeConfigurationProperty(
    file_system_id="fileSystemId",
    root_directory="rootDirectory",

    # the properties below are optional
    authorization_config=ecs.CfnTaskDefinition.FSxAuthorizationConfigProperty(
        credentials_parameter="credentialsParameter",
        domain="domain"
    )
)
```

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

FSxWindowsFileServerVolumeConfigurationProperty fSxWindowsFileServerVolumeConfigurationProperty = FSxWindowsFileServerVolumeConfigurationProperty.builder()
        .fileSystemId("fileSystemId")
        .rootDirectory("rootDirectory")

        // the properties below are optional
        .authorizationConfig(FSxAuthorizationConfigProperty.builder()
                .credentialsParameter("credentialsParameter")
                .domain("domain")
                .build())
        .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.ECS;

var fSxWindowsFileServerVolumeConfigurationProperty = new FSxWindowsFileServerVolumeConfigurationProperty {
    FileSystemId = "fileSystemId",
    RootDirectory = "rootDirectory",

    // the properties below are optional
    AuthorizationConfig = new FSxAuthorizationConfigProperty {
        CredentialsParameter = "credentialsParameter",
        Domain = "domain"
    }
};
```

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"

fSxWindowsFileServerVolumeConfigurationProperty := &FSxWindowsFileServerVolumeConfigurationProperty{
	FileSystemId: jsii.String("fileSystemId"),
	RootDirectory: jsii.String("rootDirectory"),

	// the properties below are optional
	AuthorizationConfig: &FSxAuthorizationConfigProperty{
		CredentialsParameter: jsii.String("credentialsParameter"),
		Domain: jsii.String("domain"),
	},
}
```

## Properties

- `authorizationConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTaskDefinition.FSxAuthorizationConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnTaskDefinition.FSxAuthorizationConfigProperty.html) — The authorization configuration details for the Amazon FSx for Windows File Server file system.

- `fileSystemId`: string (required) — The Amazon FSx for Windows File Server file system ID to use.

- `rootDirectory`: string (required) — The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host.
