# ProtocolProperty

Represents the protocol that AWS DataSync uses to access your Amazon FSx for OpenZFS file system.

- 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_datasync as datasync } from 'aws-cdk-lib';
const protocolProperty: datasync.CfnLocationFSxOpenZFS.ProtocolProperty = {
  nfs: {
    mountOptions: {
      version: 'version',
    },
  },
};
```

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_datasync as datasync

protocol_property = datasync.CfnLocationFSxOpenZFS.ProtocolProperty(
    nfs=datasync.CfnLocationFSxOpenZFS.NFSProperty(
        mount_options=datasync.CfnLocationFSxOpenZFS.MountOptionsProperty(
            version="version"
        )
    )
)
```

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

ProtocolProperty protocolProperty = ProtocolProperty.builder()
        .nfs(NFSProperty.builder()
                .mountOptions(MountOptionsProperty.builder()
                        .version("version")
                        .build())
                .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.DataSync;

var protocolProperty = new ProtocolProperty {
    Nfs = new NFSProperty {
        MountOptions = new MountOptionsProperty {
            Version = "version"
        }
    }
};
```

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"

protocolProperty := &ProtocolProperty{
	Nfs: &NFSProperty{
		MountOptions: &MountOptionsProperty{
			Version: jsii.String("version"),
		},
	},
}
```

## Properties

- `nfs`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLocationFSxOpenZFS.NFSProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datasync.CfnLocationFSxOpenZFS.NFSProperty.html) — Represents the Network File System (NFS) protocol that DataSync uses to access your FSx for OpenZFS file system.
