Class CfnServer
- All Implemented Interfaces:
IInspectable
,ITaggable
,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") .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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnServer
.static interface
The virtual private cloud (VPC) endpoint settings that are configured for your server.static interface
Required whenIdentityProviderType
is set toAWS_DIRECTORY_SERVICE
,AWS _LAMBDA
orAPI_GATEWAY
.static interface
The protocol settings that are configured for your server.static interface
The Amazon S3 storage options that are configured for your server.static interface
Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.static interface
Container for theWorkflowDetail
data type.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnServer
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnServer
(software.amazon.jsii.JsiiObjectRef objRef) CfnServer
(software.constructs.Construct scope, String id, CfnServerProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name associated with the server, in the formarn:aws:transfer:region: *account-id* :server/ *server-id* /
.The list of egress IP addresses of this server.The service-assigned ID of the server that is created.The Amazon Resource Name (ARN) of the AWS 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 whenIdentityProviderType
is set toAWS_DIRECTORY_SERVICE
,AWS _LAMBDA
orAPI_GATEWAY
.The mode of authentication for a server.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 EFSevents.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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCertificate
(String value) The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate.void
Specifies the domain of the storage system that is used for file transfers.void
setEndpointDetails
(IResolvable value) The virtual private cloud (VPC) endpoint settings that are configured for your server.void
The virtual private cloud (VPC) endpoint settings that are configured for your server.void
setEndpointType
(String value) The type of endpoint that you want your server to use.void
Required whenIdentityProviderType
is set toAWS_DIRECTORY_SERVICE
,AWS _LAMBDA
orAPI_GATEWAY
.void
Required whenIdentityProviderType
is set toAWS_DIRECTORY_SERVICE
,AWS _LAMBDA
orAPI_GATEWAY
.void
setIdentityProviderType
(String value) The mode of authentication for a server.void
setLoggingRole
(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 EFSevents.void
Specifies a string to display when users connect to a server.void
Specifies a string to display when users connect to a server.void
setProtocolDetails
(IResolvable value) The protocol settings that are configured for your server.void
The protocol settings that are configured for your server.void
setProtocols
(List<String> value) Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint.void
setS3StorageOptions
(IResolvable value) Specifies whether or not performance for your Amazon S3 directories is optimized.void
Specifies whether or not performance for your Amazon S3 directories is optimized.void
setSecurityPolicyName
(String value) Specifies the name of the security policy for the server.void
setStructuredLogDestinations
(List<String> value) Specifies the log groups to which your server logs are sent.void
setTagsRaw
(List<CfnTag> value) Key-value pairs that can be used to group and search for servers.void
setWorkflowDetails
(IResolvable value) Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.void
Specifies 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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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
-
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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name associated with the server, in the formarn:aws:transfer:region: *account-id* :server/ *server-id* /
.An example of a server ARN is:
arn:aws:transfer:us-east-1:123456789012:server/s-01234567890abcdef
. -
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
The service-assigned ID of the server that is created.An example
ServerId
iss-01234567890abcdef
. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getCertificate
The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate. -
setCertificate
The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate. -
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 whenIdentityProviderType
is set toAWS_DIRECTORY_SERVICE
,AWS _LAMBDA
orAPI_GATEWAY
. -
setIdentityProviderDetails
Required whenIdentityProviderType
is set toAWS_DIRECTORY_SERVICE
,AWS _LAMBDA
orAPI_GATEWAY
. -
setIdentityProviderDetails
@Stability(Stable) public void setIdentityProviderDetails(@Nullable CfnServer.IdentityProviderDetailsProperty value) Required whenIdentityProviderType
is set toAWS_DIRECTORY_SERVICE
,AWS _LAMBDA
orAPI_GATEWAY
. -
getIdentityProviderType
The mode of authentication for a server. -
setIdentityProviderType
The mode of authentication for a server. -
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 EFSevents. -
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 EFSevents. -
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.This is disabled by default.
-
setS3StorageOptions
Specifies whether or not performance for your Amazon S3 directories is optimized.This is disabled by default.
-
setS3StorageOptions
@Stability(Stable) public void setS3StorageOptions(@Nullable CfnServer.S3StorageOptionsProperty value) Specifies whether or not performance for your Amazon S3 directories is optimized.This is disabled by default.
-
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.
-