Skip to content
v2.275.0

CfnAgentProps Struct ​

Properties for defining a CfnAgent.

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 cfnAgentProps: datasync.CfnAgentProps = {
  activationKey: 'activationKey',
  agentName: 'agentName',
  securityGroupArns: ['securityGroupArns'],
  subnetArns: ['subnetArns'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
  vpcEndpointId: 'vpcEndpointId',
};

Properties ​

activationKeyoptionalstringactivation_keyoptionalstractivationKeyoptionalStringActivationKeyoptionalstringActivationKeyoptional*string#
Specifies your DataSync agent's activation key.

If you don't have an activation key, see Activating your agent .

agentNameoptionalstringagent_nameoptionalstragentNameoptionalStringAgentNameoptionalstringAgentNameoptional*string#
Specifies a name for your agent.

We recommend specifying a name that you can remember.

securityGroupArnsoptionalstring[]security_group_arnsoptionaltyping.List[str]securityGroupArnsoptionalList<String>SecurityGroupArnsoptionalstring[]SecurityGroupArnsoptional*[]*string#
The Amazon Resource Names (ARNs) of the security groups used to protect your data transfer task subnets.
notes

See SecurityGroupArns .

Pattern : ^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):ec2:[a-z\-0-9]*:[0-9]{12}:security-group/.*$

subnetArnsoptionalstring[]subnet_arnsoptionaltyping.List[str]subnetArnsoptionalList<String>SubnetArnsoptionalstring[]SubnetArnsoptional*[]*string#
Specifies the ARN of the subnet where your VPC service endpoint is located.

You can only specify one ARN.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
Specifies labels that help you categorize, filter, and search for your AWS resources.

We recommend creating at least one tag for your agent.

vpcEndpointIdoptionalstringvpc_endpoint_idoptionalstrvpcEndpointIdoptionalStringVpcEndpointIdoptionalstringVpcEndpointIdoptional*string#
The ID of the virtual private cloud (VPC) endpoint that the agent has access to.
notes

This is the client-side VPC endpoint, powered by AWS PrivateLink . If you don't have an AWS PrivateLink VPC endpoint, see AWS PrivateLink and VPC endpoints in the Amazon VPC User Guide .

For more information about activating your agent in a private network based on a VPC, see Using AWS DataSync in a Virtual Private Cloud in the AWS DataSync User Guide.

A VPC endpoint ID looks like this: vpce-01234d5aff67890e1 .