CfnConnectorProps
- class aws_cdk.aws_transfer.CfnConnectorProps(*, access_role, as2_config, url, logging_role=None, tags=None)
Bases:
object
Properties for defining a
CfnConnector
.- Parameters:
access_role (
str
) – With AS2, you can send files by callingStartFileTransfer
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, theAccessRole
needs to provide read and write access to the parent directory of the file location used in theStartFileTransfer
request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer
.as2_config (
Any
) – A structure that contains the parameters for a connector object.url (
str
) – The URL of the partner’s AS2 endpoint.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.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – Key-value pairs that can be used to group and search for connectors.
- Link:
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. import aws_cdk.aws_transfer as transfer # as2_config: Any cfn_connector_props = transfer.CfnConnectorProps( access_role="accessRole", as2_config=as2_config, url="url", # the properties below are optional logging_role="loggingRole", tags=[CfnTag( key="key", value="value" )] )
Attributes
- access_role
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, theAccessRole
needs to provide read and write access to the parent directory of the file location used in theStartFileTransfer
request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer
.
- as2_config
A structure that contains the parameters for a 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.
- tags
Key-value pairs that can be used to group and search for connectors.
- url
The URL of the partner’s AS2 endpoint.