Class CfnConnector
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IConnectorRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
For AS2, the connector is required for sending files to an externally hosted AS2 server. For SFTP, the connector is required when sending files to an SFTP server or receiving files from an SFTP server. For more details about connectors, see Configure AS2 connectors and Create SFTP connectors .
You must specify exactly one configuration object: either for AS2 (
As2Config) or SFTP (SftpConfig).
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")
// 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")
.loggingRole("loggingRole")
.securityPolicyName("securityPolicyName")
.sftpConfig(SftpConfigProperty.builder()
.maxConcurrentConnections(123)
.trustedHostKeys(List.of("trustedHostKeys"))
.userSecretId("userSecretId")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.url("url")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA structure that contains the parameters for an AS2 connector object.static final classA fluent builder forCfnConnector.static interfaceConfiguration structure that defines how traffic is routed from the connector to the SFTP server.static interfaceVPC_LATTICE egress configuration that specifies the Resource Configuration ARN and port for connecting to SFTP servers through customer VPCs.static interfaceA structure that contains the parameters for an SFTP connector object.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.transfer.IConnectorRef
IConnectorRef.Jsii$Default, IConnectorRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnConnector(software.amazon.jsii.JsiiObjectRef objRef) CfnConnector(software.constructs.Construct scope, String id, CfnConnectorProps props) Create a newAWS::Transfer::Connector. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForConnector(IConnectorRef resource) static IConnectorReffromConnectorArn(software.constructs.Construct scope, String id, String arn) Creates a new IConnectorRef from an ARN.static IConnectorReffromConnectorId(software.constructs.Construct scope, String id, String connectorId) Creates a new IConnectorRef from a connectorId.Connectors are used to send files using either the AS2 or SFTP protocol.A structure that contains the parameters for an AS2 connector object.Specifies the unique Amazon Resource Name (ARN) for the connector.The service-assigned ID of the connector that is created.The list of egress IP addresses of this connector.Current status of the connector.A reference to a Connector resource.Current egress configuration of the connector, showing how traffic is routed to the SFTP server.Type of egress configuration for the connector.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.The text name of the security policy for the specified connector.A structure that contains the parameters for an SFTP connector object.getTags()Tag Manager which manages the tags for this resource.Key-value pairs that can be used to group and search for connectors.getUrl()The URL of the partner's AS2 or SFTP endpoint.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnConnector.renderProperties(Map<String, Object> props) voidsetAccessRole(String value) Connectors are used to send files using either the AS2 or SFTP protocol.voidsetAs2Config(Object value) A structure that contains the parameters for an AS2 connector object.voidsetEgressConfig(IResolvable value) Current egress configuration of the connector, showing how traffic is routed to the SFTP server.voidCurrent egress configuration of the connector, showing how traffic is routed to the SFTP server.voidsetEgressType(String value) Type of egress configuration for the connector.voidsetLoggingRole(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.voidsetSecurityPolicyName(String value) The text name of the security policy for the specified connector.voidsetSftpConfig(IResolvable value) A structure that contains the parameters for an SFTP connector object.voidA structure that contains the parameters for an SFTP connector object.voidsetTagsRaw(List<CfnTag> value) Key-value pairs that can be used to group and search for connectors.voidThe URL of the partner's AS2 or SFTP endpoint.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnConnectorProps props) Create a newAWS::Transfer::Connector.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForConnector
- Parameters:
resource- This parameter is required.
-
fromConnectorArn
@Stability(Stable) @NotNull public static IConnectorRef fromConnectorArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IConnectorRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromConnectorId
@Stability(Stable) @NotNull public static IConnectorRef fromConnectorId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String connectorId) Creates a new IConnectorRef from a connectorId.- Parameters:
scope- This parameter is required.id- This parameter is required.connectorId- This parameter is required.
-
isCfnConnector
Checks whether the given object is a CfnConnector.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Specifies the unique Amazon Resource Name (ARN) for the connector. -
getAttrConnectorId
The service-assigned ID of the connector that is created. -
getAttrServiceManagedEgressIpAddresses
The list of egress IP addresses of this connector.These IP addresses are assigned automatically when you create the connector.
-
getAttrStatus
Current status of the connector.PENDING indicates creation/update in progress, ACTIVE means ready for operations, and ERRORED indicates a failure requiring attention.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getConnectorRef
A reference to a Connector resource.- Specified by:
getConnectorRefin interfaceIConnectorRef
-
getTags
Tag Manager which manages the tags for this resource. -
getAccessRole
Connectors are used to send files using either the AS2 or SFTP protocol. -
setAccessRole
Connectors are used to send files using either the AS2 or SFTP protocol. -
getAs2Config
A structure that contains the parameters for an AS2 connector object. -
setAs2Config
A structure that contains the parameters for an AS2 connector object. -
getEgressConfig
Current egress configuration of the connector, showing how traffic is routed to the SFTP server.Returns union: either
IResolvableorCfnConnector.ConnectorEgressConfigProperty -
setEgressConfig
Current egress configuration of the connector, showing how traffic is routed to the SFTP server. -
setEgressConfig
@Stability(Stable) public void setEgressConfig(@Nullable CfnConnector.ConnectorEgressConfigProperty value) Current egress configuration of the connector, showing how traffic is routed to the SFTP server. -
getEgressType
Type of egress configuration for the connector. -
setEgressType
Type of egress configuration for the connector. -
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. -
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. -
getSecurityPolicyName
The text name of the security policy for the specified connector. -
setSecurityPolicyName
The text name of the security policy for the specified connector. -
getSftpConfig
A structure that contains the parameters for an SFTP connector object.Returns union: either
IResolvableorCfnConnector.SftpConfigProperty -
setSftpConfig
A structure that contains the parameters for an SFTP connector object. -
setSftpConfig
A structure that contains the parameters for an SFTP connector object. -
getTagsRaw
Key-value pairs that can be used to group and search for connectors. -
setTagsRaw
Key-value pairs that can be used to group and search for connectors. -
getUrl
The URL of the partner's AS2 or SFTP endpoint. -
setUrl
The URL of the partner's AS2 or SFTP endpoint.
-