CfnConnectorProps
- class aws_cdk.aws_transfer.CfnConnectorProps(*, access_role, url, as2_config=None, logging_role=None, security_policy_name=None, sftp_config=None, tags=None)
Bases:
objectProperties for defining a
CfnConnector.- Parameters:
access_role (
str) – Connectors are used to send files using either the AS2 or SFTP protocol. 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 callingStartFileTransferand 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, theAccessRoleneeds to provide read and write access to the parent directory of the file location used in theStartFileTransferrequest. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer. If you are using Basic authentication for your AS2 connector, the access role requires thesecretsmanager:GetSecretValuepermission 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 thekms:Decryptpermission 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 theStartFileTransferrequest. Additionally, make sure that the role providessecretsmanager:GetSecretValuepermission to AWS Secrets Manager .url (
str) – 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.as2_config (
Any) – A structure that contains the parameters for an AS2 connector object.logging_role (
Optional[str]) – 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.security_policy_name (
Optional[str]) – The text name of the security policy for the specified connector.sftp_config (
Union[IResolvable,SftpConfigProperty,Dict[str,Any],None]) – A structure that contains the parameters for an SFTP connector object.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – Key-value pairs that can be used to group and search for connectors.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-connector.html
- ExampleMetadata:
fixture=_generated
Example:
# 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", url="url", # the properties below are optional as2_config=as2_config, logging_role="loggingRole", security_policy_name="securityPolicyName", sftp_config=transfer.CfnConnector.SftpConfigProperty( max_concurrent_connections=123, trusted_host_keys=["trustedHostKeys"], user_secret_id="userSecretId" ), tags=[CfnTag( key="key", value="value" )] )
Attributes
- access_role
Connectors are used to send files using either the AS2 or SFTP protocol.
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
StartFileTransferand 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, theAccessRoleneeds to provide read and write access to the parent directory of the file location used in theStartFileTransferrequest. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer.If you are using Basic authentication for your AS2 connector, the access role requires the
secretsmanager:GetSecretValuepermission 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 thekms:Decryptpermission 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
StartFileTransferrequest. Additionally, make sure that the role providessecretsmanager:GetSecretValuepermission to AWS Secrets Manager .
- as2_config
A structure that contains the parameters for an AS2 connector object.
- logging_role
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.
- security_policy_name
The text name of the security policy for the specified connector.
- sftp_config
A structure that contains the parameters for an SFTP connector object.
- tags
Key-value pairs that can be used to group and search for connectors.
- url
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.