# OnPremConfigProperty

The AWS DataSync agents that can connect to your Network File System (NFS) file server.

- 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 onPremConfigProperty: datasync.CfnLocationNFS.OnPremConfigProperty = {
  agentArns: ['agentArns'],
};
```

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

on_prem_config_property = datasync.CfnLocationNFS.OnPremConfigProperty(
    agent_arns=["agentArns"]
)
```

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

OnPremConfigProperty onPremConfigProperty = OnPremConfigProperty.builder()
        .agentArns(List.of("agentArns"))
        .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 onPremConfigProperty = new OnPremConfigProperty {
    AgentArns = new [] { "agentArns" }
};
```

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"

onPremConfigProperty := &OnPremConfigProperty{
	AgentArns: []*string{
		jsii.String("agentArns"),
	},
}
```

## Properties

- `agentArns`: string[] (required) — The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your NFS file server.

  You can specify more than one agent. For more information, see [Using multiple DataSync agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) .
