Skip to content
v2.278.0

CfnConnectorProps Struct ​

Properties for defining a CfnConnector.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_transfer as transfer } from 'aws-cdk-lib';

declare const as2Config: any;
const cfnConnectorProps: transfer.CfnConnectorProps = {
  accessRole: 'accessRole',

  // the properties below are optional
  as2Config: as2Config,
  egressConfig: {
    vpcLattice: {
      resourceConfigurationArn: 'resourceConfigurationArn',

      // the properties below are optional
      portNumber: 123,
    },
  },
  egressType: 'egressType',
  ipAddressType: 'ipAddressType',
  loggingRole: 'loggingRole',
  securityPolicyName: 'securityPolicyName',
  sftpConfig: {
    maxConcurrentConnections: 123,
    orderedUserSecretVersionStages: ['orderedUserSecretVersionStages'],
    trustedHostKeys: ['trustedHostKeys'],
    userSecretId: 'userSecretId',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  url: 'url',
};
python
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_transfer as transfer

# as2_config: Any

cfn_connector_props = transfer.CfnConnectorProps(
    access_role="accessRole",

    # the properties below are optional
    as2_config=as2_config,
    egress_config=transfer.CfnConnector.ConnectorEgressConfigProperty(
        vpc_lattice=transfer.CfnConnector.ConnectorVpcLatticeEgressConfigProperty(
            resource_configuration_arn="resourceConfigurationArn",

            # the properties below are optional
            port_number=123
        )
    ),
    egress_type="egressType",
    ip_address_type="ipAddressType",
    logging_role="loggingRole",
    security_policy_name="securityPolicyName",
    sftp_config=transfer.CfnConnector.SftpConfigProperty(
        max_concurrent_connections=123,
        ordered_user_secret_version_stages=["orderedUserSecretVersionStages"],
        trusted_host_keys=["trustedHostKeys"],
        user_secret_id="userSecretId"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    url="url"
)
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.transfer.*;

Object as2Config;

CfnConnectorProps cfnConnectorProps = CfnConnectorProps.builder()
        .accessRole("accessRole")

        // the properties below are optional
        .as2Config(as2Config)
        .egressConfig(ConnectorEgressConfigProperty.builder()
                .vpcLattice(ConnectorVpcLatticeEgressConfigProperty.builder()
                        .resourceConfigurationArn("resourceConfigurationArn")

                        // the properties below are optional
                        .portNumber(123)
                        .build())
                .build())
        .egressType("egressType")
        .ipAddressType("ipAddressType")
        .loggingRole("loggingRole")
        .securityPolicyName("securityPolicyName")
        .sftpConfig(SftpConfigProperty.builder()
                .maxConcurrentConnections(123)
                .orderedUserSecretVersionStages(List.of("orderedUserSecretVersionStages"))
                .trustedHostKeys(List.of("trustedHostKeys"))
                .userSecretId("userSecretId")
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .url("url")
        .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.Transfer;

var as2Config;

var cfnConnectorProps = new CfnConnectorProps {
    AccessRole = "accessRole",

    // the properties below are optional
    As2Config = as2Config,
    EgressConfig = new ConnectorEgressConfigProperty {
        VpcLattice = new ConnectorVpcLatticeEgressConfigProperty {
            ResourceConfigurationArn = "resourceConfigurationArn",

            // the properties below are optional
            PortNumber = 123
        }
    },
    EgressType = "egressType",
    IpAddressType = "ipAddressType",
    LoggingRole = "loggingRole",
    SecurityPolicyName = "securityPolicyName",
    SftpConfig = new SftpConfigProperty {
        MaxConcurrentConnections = 123,
        OrderedUserSecretVersionStages = new [] { "orderedUserSecretVersionStages" },
        TrustedHostKeys = new [] { "trustedHostKeys" },
        UserSecretId = "userSecretId"
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    Url = "url"
};
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"

var as2Config interface{}

cfnConnectorProps := &CfnConnectorProps{
	AccessRole: jsii.String("accessRole"),

	// the properties below are optional
	As2Config: as2Config,
	EgressConfig: &ConnectorEgressConfigProperty{
		VpcLattice: &ConnectorVpcLatticeEgressConfigProperty{
			ResourceConfigurationArn: jsii.String("resourceConfigurationArn"),

			// the properties below are optional
			PortNumber: jsii.Number(123),
		},
	},
	EgressType: jsii.String("egressType"),
	IpAddressType: jsii.String("ipAddressType"),
	LoggingRole: jsii.String("loggingRole"),
	SecurityPolicyName: jsii.String("securityPolicyName"),
	SftpConfig: &SftpConfigProperty{
		MaxConcurrentConnections: jsii.Number(123),
		OrderedUserSecretVersionStages: []*string{
			jsii.String("orderedUserSecretVersionStages"),
		},
		TrustedHostKeys: []*string{
			jsii.String("trustedHostKeys"),
		},
		UserSecretId: jsii.String("userSecretId"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	Url: jsii.String("url"),
}

Properties ​

accessRolestringaccess_rolestraccessRoleStringAccessRolestringAccessRole*string required #
Connectors are used to send files using either the AS2 or SFTP protocol.
notes

For the access role, provide the Amazon Resource Name (ARN) of the AWS Identity and Access Management role to use.

For AS2 connectors

With AS2, you can send files by calling StartFileTransfer and specifying the file paths in the request parameter, SendFilePaths . We use the file’s parent directory (for example, for --send-file-paths /bucket/dir/file.txt , parent directory is /bucket/dir/ ) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the AccessRole needs to provide read and write access to the parent directory of the file location used in the StartFileTransfer request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with StartFileTransfer .

If you are using Basic authentication for your AS2 connector, the access role requires the secretsmanager:GetSecretValue permission for the secret. If the secret is encrypted using a customer-managed key instead of the AWS managed key in Secrets Manager, then the role also needs the kms:Decrypt permission for that key.

For SFTP connectors

Make sure that the access role provides read and write access to the parent directory of the file location that's used in the StartFileTransfer request. Additionally, make sure that the role provides secretsmanager:GetSecretValue permission to AWS Secrets Manager .

as2Configoptionalanyas2_configoptionalAnyas2ConfigoptionalObjectAs2ConfigoptionalobjectAs2Configoptionalinterface{} #
A structure that contains the parameters for an AS2 connector object.
egressConfigoptionalIResolvable | CfnConnector.ConnectorEgressConfigPropertyegress_configoptionaltyping.Union[IResolvable, ConnectorEgressConfigProperty]egressConfigoptionalIResolvableEgressConfigoptionalIResolvableEgressConfigoptionalinterface{} #
Current egress configuration of the connector, showing how traffic is routed to the SFTP server.

Contains VPC Lattice settings when using VPC_LATTICE egress type.

When using the VPC_LATTICE egress type, AWS Transfer Family uses a managed Service Network to simplify the resource sharing process.

egressTypeoptionalstringegress_typeoptionalstregressTypeoptionalStringEgressTypeoptionalstringEgressTypeoptional*string #
Type of egress configuration for the connector.

SERVICE_MANAGED uses Transfer Family managed NAT gateways, while VPC_LATTICE routes traffic through customer VPCs using VPC Lattice.

ipAddressTypeoptionalstringip_address_typeoptionalstripAddressTypeoptionalStringIpAddressTypeoptionalstringIpAddressTypeoptional*string #
IP address type for Connector.
loggingRoleoptionalstringlogging_roleoptionalstrloggingRoleoptionalStringLoggingRoleoptionalstringLoggingRoleoptional*string #
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.

When set, you can view connector activity in your CloudWatch logs.

securityPolicyNameoptionalstringsecurity_policy_nameoptionalstrsecurityPolicyNameoptionalStringSecurityPolicyNameoptionalstringSecurityPolicyNameoptional*string #
The text name of the security policy for the specified connector.
sftpConfigoptionalIResolvable | CfnConnector.SftpConfigPropertysftp_configoptionaltyping.Union[IResolvable, SftpConfigProperty]sftpConfigoptionalIResolvableSftpConfigoptionalIResolvableSftpConfigoptionalinterface{} #
A structure that contains the parameters for an SFTP connector object.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Key-value pairs that can be used to group and search for connectors.
urloptionalstringurloptionalstrurloptionalStringUrloptionalstringUrloptional*string #
The URL of the partner's AS2 or SFTP endpoint.

When creating AS2 connectors or service-managed SFTP connectors (connectors without egress configuration), you must provide a URL to specify the remote server endpoint. For VPC Lattice type connectors, the URL must be null.