Skip to content
v2.278.0

FSxWindowsFileServerVolumeConfigurationProperty Struct ​

This parameter is specified when you're using Amazon FSx for Windows File Server file system for task storage.

For more information and the input format, see Amazon FSx for Windows File Server volumes in the Amazon Elastic Container Service Developer Guide .

Example ​

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
# 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
// 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();
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"
    }
};
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 ​

authorizationConfigoptionalIResolvable | CfnTaskDefinition.FSxAuthorizationConfigPropertyauthorization_configoptionaltyping.Union[IResolvable, FSxAuthorizationConfigProperty]authorizationConfigoptionalIResolvableAuthorizationConfigoptionalIResolvableAuthorizationConfigoptionalinterface{} #
The authorization configuration details for the Amazon FSx for Windows File Server file system.
fileSystemIdstringfile_system_idstrfileSystemIdStringFileSystemIdstringFileSystemId*string required #
The Amazon FSx for Windows File Server file system ID to use.
rootDirectorystringroot_directorystrrootDirectoryStringRootDirectorystringRootDirectory*string required #
The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host.