Class CfnServer
- All Implemented Interfaces:
IInspectable,ITaggable,IServerRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
When you make updates to your file transfer protocol-enabled server or when you work with users, use the service-generated ServerId property that is assigned to the newly created server.
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.*;
CfnServer cfnServer = CfnServer.Builder.create(this, "MyCfnServer")
.certificate("certificate")
.domain("domain")
.endpointDetails(EndpointDetailsProperty.builder()
.addressAllocationIds(List.of("addressAllocationIds"))
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.vpcEndpointId("vpcEndpointId")
.vpcId("vpcId")
.build())
.endpointType("endpointType")
.identityProviderDetails(IdentityProviderDetailsProperty.builder()
.directoryId("directoryId")
.function("function")
.invocationRole("invocationRole")
.sftpAuthenticationMethods("sftpAuthenticationMethods")
.url("url")
.build())
.identityProviderType("identityProviderType")
.ipAddressType("ipAddressType")
.loggingRole("loggingRole")
.postAuthenticationLoginBanner("postAuthenticationLoginBanner")
.preAuthenticationLoginBanner("preAuthenticationLoginBanner")
.protocolDetails(ProtocolDetailsProperty.builder()
.as2Transports(List.of("as2Transports"))
.passiveIp("passiveIp")
.setStatOption("setStatOption")
.tlsSessionResumptionMode("tlsSessionResumptionMode")
.build())
.protocols(List.of("protocols"))
.s3StorageOptions(S3StorageOptionsProperty.builder()
.directoryListingOptimization("directoryListingOptimization")
.build())
.securityPolicyName("securityPolicyName")
.structuredLogDestinations(List.of("structuredLogDestinations"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.workflowDetails(WorkflowDetailsProperty.builder()
.onPartialUpload(List.of(WorkflowDetailProperty.builder()
.executionRole("executionRole")
.workflowId("workflowId")
.build()))
.onUpload(List.of(WorkflowDetailProperty.builder()
.executionRole("executionRole")
.workflowId("workflowId")
.build()))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnServer.static interfaceThe virtual private cloud (VPC) endpoint settings that are configured for your server.static interfaceRequired whenIdentityProviderTypeis set toAWS_DIRECTORY_SERVICE,AWS _LAMBDAorAPI_GATEWAY.static interfaceThe protocol settings that are configured for your server.static interfaceThe Amazon S3 storage options that are configured for your server.static interfaceSpecifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.static interfaceContainer for theWorkflowDetaildata type.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested 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.services.transfer.IServerRef
IServerRef.Jsii$Default, IServerRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnServer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnServer(software.amazon.jsii.JsiiObjectRef objRef) CfnServer(software.constructs.Construct scope, String id, CfnServerProps props) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the unique Amazon Resource Name (ARN) of the server.The list of egress IP addresses of this server.Specifies the unique system-assigned identifier for a server that you instantiate.The condition of the server that was described.The Amazon Resource Name (ARN) of the Certificate Manager (ACM) certificate.Specifies the domain of the storage system that is used for file transfers.The virtual private cloud (VPC) endpoint settings that are configured for your server.The type of endpoint that you want your server to use.Required whenIdentityProviderTypeis set toAWS_DIRECTORY_SERVICE,AWS _LAMBDAorAPI_GATEWAY.The mode of authentication for a server.Specifies whether to use IPv4 only, or to use dual-stack (IPv4 and IPv6) for your AWS Transfer Family endpoint.The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events.Specifies a string to display when users connect to a server.Specifies a string to display when users connect to a server.The protocol settings that are configured for your server.Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint.Specifies whether or not performance for your Amazon S3 directories is optimized.Specifies the name of the security policy for the server.A reference to a Server resource.Specifies the log groups to which your server logs are sent.getTags()Tag Manager which manages the tags for this resource.Key-value pairs that can be used to group and search for servers.Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCertificate(String value) The Amazon Resource Name (ARN) of the Certificate Manager (ACM) certificate.voidSpecifies the domain of the storage system that is used for file transfers.voidsetEndpointDetails(IResolvable value) The virtual private cloud (VPC) endpoint settings that are configured for your server.voidThe virtual private cloud (VPC) endpoint settings that are configured for your server.voidsetEndpointType(String value) The type of endpoint that you want your server to use.voidRequired whenIdentityProviderTypeis set toAWS_DIRECTORY_SERVICE,AWS _LAMBDAorAPI_GATEWAY.voidRequired whenIdentityProviderTypeis set toAWS_DIRECTORY_SERVICE,AWS _LAMBDAorAPI_GATEWAY.voidsetIdentityProviderType(String value) The mode of authentication for a server.voidsetIpAddressType(String value) Specifies whether to use IPv4 only, or to use dual-stack (IPv4 and IPv6) for your AWS Transfer Family endpoint.voidsetLoggingRole(String value) The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events.voidSpecifies a string to display when users connect to a server.voidSpecifies a string to display when users connect to a server.voidsetProtocolDetails(IResolvable value) The protocol settings that are configured for your server.voidThe protocol settings that are configured for your server.voidsetProtocols(List<String> value) Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint.voidsetS3StorageOptions(IResolvable value) Specifies whether or not performance for your Amazon S3 directories is optimized.voidSpecifies whether or not performance for your Amazon S3 directories is optimized.voidsetSecurityPolicyName(String value) Specifies the name of the security policy for the server.voidsetStructuredLogDestinations(List<String> value) Specifies the log groups to which your server logs are sent.voidsetTagsRaw(List<CfnTag> value) Key-value pairs that can be used to group and search for servers.voidsetWorkflowDetails(IResolvable value) Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.voidSpecifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnServer
protected CfnServer(software.amazon.jsii.JsiiObjectRef objRef) -
CfnServer
protected CfnServer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnServer
@Stability(Stable) public CfnServer(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnServerProps props) - 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.
-
CfnServer
@Stability(Stable) public CfnServer(@NotNull software.constructs.Construct scope, @NotNull String id) - 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.
-
-
Method Details
-
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) of the server. -
getAttrAs2ServiceManagedEgressIpAddresses
The list of egress IP addresses of this server.These IP addresses are only relevant for servers that use the AS2 protocol. They are used for sending asynchronous MDNs.
These IP addresses are assigned automatically when you create an AS2 server. Additionally, if you update an existing server and add the AS2 protocol, static IP addresses are assigned as well.
-
getAttrServerId
Specifies the unique system-assigned identifier for a server that you instantiate. -
getAttrState
The condition of the server that was described.A value of
ONLINEindicates that the server can accept jobs and transfer files. AStatevalue ofOFFLINEmeans that the server cannot perform file transfer operations.The states of
STARTINGandSTOPPINGindicate that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values ofSTART_FAILEDorSTOP_FAILEDcan indicate an error condition. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getServerRef
A reference to a Server resource.- Specified by:
getServerRefin interfaceIServerRef
-
getTags
Tag Manager which manages the tags for this resource. -
getCertificate
The Amazon Resource Name (ARN) of the Certificate Manager (ACM) certificate.Required when
Protocolsis set toFTPS. -
setCertificate
The Amazon Resource Name (ARN) of the Certificate Manager (ACM) certificate.Required when
Protocolsis set toFTPS. -
getDomain
Specifies the domain of the storage system that is used for file transfers. -
setDomain
Specifies the domain of the storage system that is used for file transfers. -
getEndpointDetails
The virtual private cloud (VPC) endpoint settings that are configured for your server. -
setEndpointDetails
The virtual private cloud (VPC) endpoint settings that are configured for your server. -
setEndpointDetails
@Stability(Stable) public void setEndpointDetails(@Nullable CfnServer.EndpointDetailsProperty value) The virtual private cloud (VPC) endpoint settings that are configured for your server. -
getEndpointType
The type of endpoint that you want your server to use. -
setEndpointType
The type of endpoint that you want your server to use. -
getIdentityProviderDetails
Required whenIdentityProviderTypeis set toAWS_DIRECTORY_SERVICE,AWS _LAMBDAorAPI_GATEWAY. -
setIdentityProviderDetails
Required whenIdentityProviderTypeis set toAWS_DIRECTORY_SERVICE,AWS _LAMBDAorAPI_GATEWAY. -
setIdentityProviderDetails
@Stability(Stable) public void setIdentityProviderDetails(@Nullable CfnServer.IdentityProviderDetailsProperty value) Required whenIdentityProviderTypeis set toAWS_DIRECTORY_SERVICE,AWS _LAMBDAorAPI_GATEWAY. -
getIdentityProviderType
The mode of authentication for a server. -
setIdentityProviderType
The mode of authentication for a server. -
getIpAddressType
Specifies whether to use IPv4 only, or to use dual-stack (IPv4 and IPv6) for your AWS Transfer Family endpoint. -
setIpAddressType
Specifies whether to use IPv4 only, or to use dual-stack (IPv4 and IPv6) for your AWS Transfer Family endpoint. -
getLoggingRole
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. -
setLoggingRole
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. -
getPostAuthenticationLoginBanner
Specifies a string to display when users connect to a server.This string is displayed after the user authenticates.
-
setPostAuthenticationLoginBanner
Specifies a string to display when users connect to a server.This string is displayed after the user authenticates.
-
getPreAuthenticationLoginBanner
Specifies a string to display when users connect to a server. -
setPreAuthenticationLoginBanner
Specifies a string to display when users connect to a server. -
getProtocolDetails
The protocol settings that are configured for your server. -
setProtocolDetails
The protocol settings that are configured for your server. -
setProtocolDetails
@Stability(Stable) public void setProtocolDetails(@Nullable CfnServer.ProtocolDetailsProperty value) The protocol settings that are configured for your server. -
getProtocols
Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. -
setProtocols
Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. -
getS3StorageOptions
Specifies whether or not performance for your Amazon S3 directories is optimized. -
setS3StorageOptions
Specifies whether or not performance for your Amazon S3 directories is optimized. -
setS3StorageOptions
@Stability(Stable) public void setS3StorageOptions(@Nullable CfnServer.S3StorageOptionsProperty value) Specifies whether or not performance for your Amazon S3 directories is optimized. -
getSecurityPolicyName
Specifies the name of the security policy for the server. -
setSecurityPolicyName
Specifies the name of the security policy for the server. -
getStructuredLogDestinations
Specifies the log groups to which your server logs are sent. -
setStructuredLogDestinations
Specifies the log groups to which your server logs are sent. -
getTagsRaw
Key-value pairs that can be used to group and search for servers. -
setTagsRaw
Key-value pairs that can be used to group and search for servers. -
getWorkflowDetails
Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow. -
setWorkflowDetails
Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow. -
setWorkflowDetails
@Stability(Stable) public void setWorkflowDetails(@Nullable CfnServer.WorkflowDetailsProperty value) Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.
-