java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-15T10:24:57.287Z") @Stability(Stable) public class CfnAgent extends CfnResource implements IInspectable, ITaggable
The AWS::DataSync::Agent resource activates an AWS DataSync agent that you've deployed for storage discovery or data transfers.

The activation process associates the agent with your AWS account .

For more information, see the following topics in the AWS DataSync User Guide :

Example:

 // 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.*;
 CfnAgent cfnAgent = CfnAgent.Builder.create(this, "MyCfnAgent")
         .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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnAgent

      protected CfnAgent(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnAgent

      protected CfnAgent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnAgent

      @Stability(Stable) public CfnAgent(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnAgentProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnAgent

      @Stability(Stable) public CfnAgent(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrAgentArn

      @Stability(Stable) @NotNull public String getAttrAgentArn()
      The Amazon Resource Name (ARN) of the agent.

      Use the ListAgents operation to return a list of agents for your account and AWS Region .

    • getAttrEndpointType

      @Stability(Stable) @NotNull public String getAttrEndpointType()
      The type of endpoint that your agent is connected to.

      If the endpoint is a VPC endpoint, the agent is not accessible over the public internet.

    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getActivationKey

      @Stability(Stable) @Nullable public String getActivationKey()
      Specifies your DataSync agent's activation key.
    • setActivationKey

      @Stability(Stable) public void setActivationKey(@Nullable String value)
      Specifies your DataSync agent's activation key.
    • getAgentName

      @Stability(Stable) @Nullable public String getAgentName()
      Specifies a name for your agent.
    • setAgentName

      @Stability(Stable) public void setAgentName(@Nullable String value)
      Specifies a name for your agent.
    • getSecurityGroupArns

      @Stability(Stable) @Nullable public List<String> getSecurityGroupArns()
      The Amazon Resource Names (ARNs) of the security groups used to protect your data transfer task subnets.
    • setSecurityGroupArns

      @Stability(Stable) public void setSecurityGroupArns(@Nullable List<String> value)
      The Amazon Resource Names (ARNs) of the security groups used to protect your data transfer task subnets.
    • getSubnetArns

      @Stability(Stable) @Nullable public List<String> getSubnetArns()
      Specifies the ARN of the subnet where your VPC service endpoint is located.
    • setSubnetArns

      @Stability(Stable) public void setSubnetArns(@Nullable List<String> value)
      Specifies the ARN of the subnet where your VPC service endpoint is located.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      Specifies labels that help you categorize, filter, and search for your AWS resources.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      Specifies labels that help you categorize, filter, and search for your AWS resources.
    • getVpcEndpointId

      @Stability(Stable) @Nullable public String getVpcEndpointId()
      The ID of the virtual private cloud (VPC) endpoint that the agent has access to.
    • setVpcEndpointId

      @Stability(Stable) public void setVpcEndpointId(@Nullable String value)
      The ID of the virtual private cloud (VPC) endpoint that the agent has access to.