Skip to content
v2.278.0

OnPremConfigProperty Struct ​

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

Example ​

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

agentArnsstring[]agent_arnstyping.List[str]agentArnsList<String>AgentArnsstring[]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 .