Interface ICfnConnectorProps
Properties for defining a CfnConnector
.
Namespace: Amazon.CDK.AWS.Transfer
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnConnectorProps
Syntax (vb)
Public Interface ICfnConnectorProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-connector.html
ExampleMetadata: fixture=_generated
Examples
// 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",
Url = "url",
// the properties below are optional
As2Config = as2Config,
LoggingRole = "loggingRole",
SecurityPolicyName = "securityPolicyName",
SftpConfig = new SftpConfigProperty {
TrustedHostKeys = new [] { "trustedHostKeys" },
UserSecretId = "userSecretId"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
AccessRole | Connectors are used to send files using either the AS2 or SFTP protocol. |
As2Config | A structure that contains the parameters for an AS2 connector object. |
LoggingRole | 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. |
SecurityPolicyName | The text name of the security policy for the specified connector. |
SftpConfig | 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. |
Properties
AccessRole
Connectors are used to send files using either the AS2 or SFTP protocol.
string AccessRole { get; }
Property Value
System.String
Remarks
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 .
As2Config
A structure that contains the parameters for an AS2 connector object.
virtual object As2Config { get; }
Property Value
System.Object
Remarks
LoggingRole
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.
virtual string LoggingRole { get; }
Property Value
System.String
Remarks
When set, you can view connector activity in your CloudWatch logs.
SecurityPolicyName
The text name of the security policy for the specified connector.
virtual string SecurityPolicyName { get; }
Property Value
System.String
Remarks
SftpConfig
A structure that contains the parameters for an SFTP connector object.
virtual object SftpConfig { get; }
Property Value
System.Object
Remarks
Tags
Key-value pairs that can be used to group and search for connectors.
virtual ICfnTag[] Tags { get; }
Property Value
ICfnTag[]
Remarks
Url
The URL of the partner's AS2 or SFTP endpoint.
string Url { get; }
Property Value
System.String