Skip to main content

servers

Creates, updates, deletes or gets a server resource or lists servers in a region

Overview

Nameservers
TypeResource
DescriptionDefinition of AWS::Transfer::Server Resource Type
Idawscc.transfer.servers

Fields

NameDatatypeDescription
arnstring
as2_service_managed_egress_ip_addressesarrayThe 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.
certificatestring
domainstring
endpoint_detailsobject
endpoint_typestring
identity_provider_detailsobjectYou can provide a structure that contains the details for the identity provider to use with your web app.
identity_provider_typestring
ip_address_typestring
logging_rolestring
post_authentication_login_bannerstring
pre_authentication_login_bannerstring
protocol_detailsobject
protocolsarray
s3_storage_optionsobject
security_policy_namestring
server_idstring
statestring
structured_log_destinationsarray
tagsarray
workflow_detailsobject
regionstringAWS region.

For more information, see AWS::Transfer::Server.

Methods

NameResourceAccessible byRequired Params
create_resourceserversINSERTregion
delete_resourceserversDELETEIdentifier, region
update_resourceserversUPDATEIdentifier, PatchDocument, region
list_resourcesservers_list_onlySELECTregion
get_resourceserversSELECTIdentifier, region

SELECT examples

Gets all properties from an individual server.

SELECT
region,
arn,
as2_service_managed_egress_ip_addresses,
certificate,
domain,
endpoint_details,
endpoint_type,
identity_provider_details,
identity_provider_type,
ip_address_type,
logging_role,
post_authentication_login_banner,
pre_authentication_login_banner,
protocol_details,
protocols,
s3_storage_options,
security_policy_name,
server_id,
state,
structured_log_destinations,
tags,
workflow_details
FROM awscc.transfer.servers
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new server resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.transfer.servers (
Certificate,
Domain,
EndpointDetails,
EndpointType,
IdentityProviderDetails,
IdentityProviderType,
IpAddressType,
LoggingRole,
PostAuthenticationLoginBanner,
PreAuthenticationLoginBanner,
ProtocolDetails,
Protocols,
S3StorageOptions,
SecurityPolicyName,
StructuredLogDestinations,
Tags,
WorkflowDetails,
region
)
SELECT
'{{ certificate }}',
'{{ domain }}',
'{{ endpoint_details }}',
'{{ endpoint_type }}',
'{{ identity_provider_details }}',
'{{ identity_provider_type }}',
'{{ ip_address_type }}',
'{{ logging_role }}',
'{{ post_authentication_login_banner }}',
'{{ pre_authentication_login_banner }}',
'{{ protocol_details }}',
'{{ protocols }}',
'{{ s3_storage_options }}',
'{{ security_policy_name }}',
'{{ structured_log_destinations }}',
'{{ tags }}',
'{{ workflow_details }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a server resource, using stack-deploy.

/*+ update */
UPDATE awscc.transfer.servers
SET PatchDocument = string('{{ {
"Certificate": certificate,
"EndpointDetails": endpoint_details,
"EndpointType": endpoint_type,
"IdentityProviderDetails": identity_provider_details,
"IpAddressType": ip_address_type,
"LoggingRole": logging_role,
"PostAuthenticationLoginBanner": post_authentication_login_banner,
"PreAuthenticationLoginBanner": pre_authentication_login_banner,
"ProtocolDetails": protocol_details,
"Protocols": protocols,
"S3StorageOptions": s3_storage_options,
"SecurityPolicyName": security_policy_name,
"StructuredLogDestinations": structured_log_destinations,
"Tags": tags,
"WorkflowDetails": workflow_details
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.transfer.servers
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

To operate on the servers resource, the following permissions are required:

apigateway:GET,
ds:AuthorizeApplication,
ds:DescribeDirectories,
ec2:AssociateAddress,
ec2:CreateVpcEndpoint,
ec2:DescribeAddresses,
ec2:DescribeNetworkInterfaces,
ec2:DescribeVpcEndpoints,
iam:PassRole,
logs:CreateLogDelivery,
logs:DeleteLogDelivery,
logs:DescribeLogGroups,
logs:DescribeResourcePolicies,
logs:GetLogDelivery,
logs:ListLogDeliveries,
logs:PutResourcePolicy,
logs:UpdateLogDelivery,
transfer:CreateServer,
transfer:DescribeServer,
transfer:StartServer,
transfer:StopServer,
transfer:TagResource,
transfer:UpdateServer