Interface CfnAgreementProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAgreementProps.Jsii$Proxy
CfnAgreement.
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.*;
CfnAgreementProps cfnAgreementProps = CfnAgreementProps.builder()
.accessRole("accessRole")
.baseDirectory("baseDirectory")
.localProfileId("localProfileId")
.partnerProfileId("partnerProfileId")
.serverId("serverId")
// the properties below are optional
.description("description")
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAgreementPropsstatic final classAn implementation forCfnAgreementProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAgreementProps.Builderbuilder()Connectors are used to send files using either the AS2 or SFTP protocol.The landing directory (folder) for files that are transferred by using the AS2 protocol.default StringThe name or short description that's used to identify the agreement.A unique identifier for the AS2 local profile.A unique identifier for the partner profile used in the agreement.A system-assigned unique identifier for a server instance.default StringThe current status of the agreement, eitherACTIVEorINACTIVE.getTags()Key-value pairs that can be used to group and search for agreements.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessRole
Connectors are used to send files using either the AS2 or SFTP protocol.For the access role, provide the Amazon Resource Name (ARN) of the AWS Identity and Access Management role to use.
For AS2 connectors
With AS2, you can send files by calling
StartFileTransferand 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, theAccessRoleneeds to provide read and write access to the parent directory of the file location used in theStartFileTransferrequest. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer.If you are using Basic authentication for your AS2 connector, the access role requires the
secretsmanager:GetSecretValuepermission for the secret. If the secret is encrypted using a customer-managed key instead of the AWS managed key in Secrets Manager, then the role also needs thekms:Decryptpermission for that key.For SFTP connectors
Make sure that the access role provides read and write access to the parent directory of the file location that's used in the
StartFileTransferrequest. Additionally, make sure that the role providessecretsmanager:GetSecretValuepermission to AWS Secrets Manager .- See Also:
-
getBaseDirectory
The landing directory (folder) for files that are transferred by using the AS2 protocol.- See Also:
-
getLocalProfileId
A unique identifier for the AS2 local profile.- See Also:
-
getPartnerProfileId
A unique identifier for the partner profile used in the agreement.- See Also:
-
getServerId
A system-assigned unique identifier for a server instance.This identifier indicates the specific server that the agreement uses.
- See Also:
-
getDescription
The name or short description that's used to identify the agreement.- See Also:
-
getStatus
The current status of the agreement, eitherACTIVEorINACTIVE.- See Also:
-
getTags
Key-value pairs that can be used to group and search for agreements.- See Also:
-
builder
- Returns:
- a
CfnAgreementProps.BuilderofCfnAgreementProps
-