Class CfnConnector

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.101.0 (build b95fe5d)", date="2024-07-12T19:34:10.735Z") @Stability(Stable) public class CfnConnector extends CfnResource implements IInspectable, ITaggable
Creates the connector, which captures the parameters for a connection for the AS2 or SFTP protocol.

For AS2, the connector is required for sending files to an externally hosted AS2 server. For SFTP, the connector is required when sending files to an SFTP server or receiving files from an SFTP server. For more details about connectors, see Configure AS2 connectors and Create SFTP connectors .

You must specify exactly one configuration object: either for AS2 ( As2Config ) or SFTP ( SftpConfig ).

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.transfer.*;
 Object as2Config;
 CfnConnector cfnConnector = CfnConnector.Builder.create(this, "MyCfnConnector")
         .accessRole("accessRole")
         .url("url")
         // the properties below are optional
         .as2Config(as2Config)
         .loggingRole("loggingRole")
         .securityPolicyName("securityPolicyName")
         .sftpConfig(SftpConfigProperty.builder()
                 .trustedHostKeys(List.of("trustedHostKeys"))
                 .userSecretId("userSecretId")
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .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

    • CfnConnector

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

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

      @Stability(Stable) public CfnConnector(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnConnectorProps 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. 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.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      Specifies the unique Amazon Resource Name (ARN) for the connector.
    • getAttrConnectorId

      @Stability(Stable) @NotNull public String getAttrConnectorId()
      The service-assigned ID of the connector that is created.
    • getAttrServiceManagedEgressIpAddresses

      @Stability(Stable) @NotNull public List<String> getAttrServiceManagedEgressIpAddresses()
      The list of egress IP addresses of this connector.

      These IP addresses are assigned automatically when you create the connector.

    • 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
    • getAccessRole

      @Stability(Stable) @NotNull public String getAccessRole()
      Connectors are used to send files using either the AS2 or SFTP protocol.
    • setAccessRole

      @Stability(Stable) public void setAccessRole(@NotNull String value)
      Connectors are used to send files using either the AS2 or SFTP protocol.
    • getUrl

      @Stability(Stable) @NotNull public String getUrl()
      The URL of the partner's AS2 or SFTP endpoint.
    • setUrl

      @Stability(Stable) public void setUrl(@NotNull String value)
      The URL of the partner's AS2 or SFTP endpoint.
    • getAs2Config

      @Stability(Stable) @Nullable public Object getAs2Config()
      A structure that contains the parameters for an AS2 connector object.
    • setAs2Config

      @Stability(Stable) public void setAs2Config(@Nullable Object value)
      A structure that contains the parameters for an AS2 connector object.
    • getLoggingRole

      @Stability(Stable) @Nullable public String getLoggingRole()
      The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events.
    • setLoggingRole

      @Stability(Stable) public void setLoggingRole(@Nullable String value)
      The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events.
    • getSecurityPolicyName

      @Stability(Stable) @Nullable public String getSecurityPolicyName()
      The text name of the security policy for the specified connector.
    • setSecurityPolicyName

      @Stability(Stable) public void setSecurityPolicyName(@Nullable String value)
      The text name of the security policy for the specified connector.
    • getSftpConfig

      @Stability(Stable) @Nullable public Object getSftpConfig()
      A structure that contains the parameters for an SFTP connector object.
    • setSftpConfig

      @Stability(Stable) public void setSftpConfig(@Nullable IResolvable value)
      A structure that contains the parameters for an SFTP connector object.
    • setSftpConfig

      @Stability(Stable) public void setSftpConfig(@Nullable CfnConnector.SftpConfigProperty value)
      A structure that contains the parameters for an SFTP connector object.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      Key-value pairs that can be used to group and search for connectors.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      Key-value pairs that can be used to group and search for connectors.