Interface CfnAgreementProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAgreementProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:35.908Z") @Stability(Stable) public interface CfnAgreementProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a 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();
 
  • Method Details

    • getAccessRole

      @Stability(Stable) @NotNull String getAccessRole()
      With AS2, you can send files by calling StartFileTransfer and 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, the AccessRole needs to provide read and write access to the parent directory of the file location used in the StartFileTransfer request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with StartFileTransfer .

    • getBaseDirectory

      @Stability(Stable) @NotNull String getBaseDirectory()
      The landing directory (folder) for files that are transferred by using the AS2 protocol.
    • getLocalProfileId

      @Stability(Stable) @NotNull String getLocalProfileId()
      A unique identifier for the AS2 local profile.
    • getPartnerProfileId

      @Stability(Stable) @NotNull String getPartnerProfileId()
      A unique identifier for the partner profile used in the agreement.
    • getServerId

      @Stability(Stable) @NotNull String getServerId()
      A system-assigned unique identifier for a server instance.

      This identifier indicates the specific server that the agreement uses.

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      The name or short description that's used to identify the agreement.
    • getStatus

      @Stability(Stable) @Nullable default String getStatus()
      The current status of the agreement, either ACTIVE or INACTIVE .
    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      Key-value pairs that can be used to group and search for agreements.
    • builder

      @Stability(Stable) static CfnAgreementProps.Builder builder()
      Returns:
      a CfnAgreementProps.Builder of CfnAgreementProps