CfnAgentProps Struct
Properties for defining a CfnAgent.
| Source | |
|---|---|
| Type last changed |
Example
// 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',
};
from aws_cdk import CfnTag
# 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
cfn_agent_props = datasync.CfnAgentProps(
activation_key="activationKey",
agent_name="agentName",
security_group_arns=["securityGroupArns"],
subnet_arns=["subnetArns"],
tags=[CfnTag(
key="key",
value="value"
)],
vpc_endpoint_id="vpcEndpointId"
)
// 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.*;
CfnAgentProps cfnAgentProps = CfnAgentProps.builder()
.activationKey("activationKey")
.agentName("agentName")
.securityGroupArns(List.of("securityGroupArns"))
.subnetArns(List.of("subnetArns"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcEndpointId("vpcEndpointId")
.build();
// 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 cfnAgentProps = new CfnAgentProps {
ActivationKey = "activationKey",
AgentName = "agentName",
SecurityGroupArns = new [] { "securityGroupArns" },
SubnetArns = new [] { "subnetArns" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcEndpointId = "vpcEndpointId"
};
// 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"
cfnAgentProps := &CfnAgentProps{
ActivationKey: jsii.String("activationKey"),
AgentName: jsii.String("agentName"),
SecurityGroupArns: []*string{
jsii.String("securityGroupArns"),
},
SubnetArns: []*string{
jsii.String("subnetArns"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VpcEndpointId: jsii.String("vpcEndpointId"),
}
Properties
activationKeyoptionalstringactivation_keyoptionalstractivationKeyoptionalStringActivationKeyoptionalstringActivationKeyoptional*string #If you don't have an activation key, see Activating your agent .
agentNameoptionalstringagent_nameoptionalstragentNameoptionalStringAgentNameoptionalstringAgentNameoptional*string #We recommend specifying a name that you can remember.
securityGroupArnsoptionalstring[]security_group_arnsoptionaltyping.List[str]securityGroupArnsoptionalList<String>SecurityGroupArnsoptionalstring[]SecurityGroupArnsoptional*[]*string #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 #You can only specify one ARN.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #We recommend creating at least one tag for your agent.
vpcEndpointIdoptionalstringvpc_endpoint_idoptionalstrvpcEndpointIdoptionalStringVpcEndpointIdoptionalstringVpcEndpointIdoptional*string #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 .