Class CfnConnector
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Transfer::Connector
.
Creates the connector, which captures the parameters for an outbound connection for the AS2 protocol. The connector is required for sending files to an externally hosted AS2 server. For more details about connectors, see Create AS2 connectors .
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") .as2Config(as2Config) .url("url") // the properties below are optional .loggingRole("loggingRole") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A structure that contains the parameters for a connector object.static final class
A fluent builder forCfnConnector
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnConnector
(Construct scope, String id, CfnConnectorProps props) Create a newAWS::Transfer::Connector
.protected
CfnConnector
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnConnector
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionWith AS2, you can send files by callingStartFileTransfer
and specifying the file paths in the request parameter,SendFilePaths
.A structure that contains the parameters for a connector object.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.getTags()
Key-value pairs that can be used to group and search for connectors.getUrl()
The URL of the partner's AS2 endpoint.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAccessRole
(String value) With AS2, you can send files by callingStartFileTransfer
and specifying the file paths in the request parameter,SendFilePaths
.void
setAs2Config
(Object value) A structure that contains the parameters for a connector object.void
setLoggingRole
(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.void
The URL of the partner's AS2 endpoint.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 Construct scope, @NotNull String id, @NotNull CfnConnectorProps props) Create a newAWS::Transfer::Connector
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
-
getAttrConnectorId
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Key-value pairs that can be used to group and search for connectors. -
getAccessRole
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
. -
setAccessRole
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
. -
getAs2Config
A structure that contains the parameters for a connector object. -
setAs2Config
A structure that contains the parameters for a connector object. -
getUrl
The URL of the partner's AS2 endpoint. -
setUrl
The URL of the partner's AS2 endpoint. -
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.When set, you can view connector activity in your CloudWatch logs.
-
setLoggingRole
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.
-