Skip to content

DescribedAgreement

Source code in docs_src/capo_transfer/types/described_agreement.py
class DescribedAgreement(TypedDict, closed=True):
    arn: "capo_transfer.types.arn.Arn"
    """<p>The unique Amazon Resource Name (ARN) for the agreement.</p>"""
    agreement_id: NotRequired["capo_transfer.types.agreement_id.AgreementId"]
    """<p>A unique identifier for the agreement. This identifier is returned when you create an agreement.</p>"""
    description: NotRequired["capo_transfer.types.description.Description"]
    """<p>The name or short description that's used to identify the agreement.</p>"""
    status: NotRequired["capo_transfer.types.agreement_status_type.AgreementStatusType"]
    """<p>The current status of the agreement, either <code>ACTIVE</code> or <code>INACTIVE</code>.</p>"""
    server_id: NotRequired["capo_transfer.types.server_id.ServerId"]
    """<p>A system-assigned unique identifier for a server instance. This identifier indicates the specific server that the agreement uses.</p>"""
    local_profile_id: NotRequired["capo_transfer.types.profile_id.ProfileId"]
    """<p>A unique identifier for the AS2 local profile.</p>"""
    partner_profile_id: NotRequired["capo_transfer.types.profile_id.ProfileId"]
    """<p>A unique identifier for the partner profile used in the agreement.</p>"""
    base_directory: NotRequired["capo_transfer.types.home_directory.HomeDirectory"]
    """<p>The landing directory (folder) for files that are transferred by using the AS2 protocol.</p>"""
    access_role: NotRequired["capo_transfer.types.role.Role"]
    """<p>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 Identity and Access Management role to use.</p> <p> <b>For AS2 connectors</b> </p> <p>With AS2, you can send files by calling <code>StartFileTransfer</code> and specifying the file paths in the request parameter, <code>SendFilePaths</code>. We use the file’s parent directory (for example, for <code>--send-file-paths /bucket/dir/file.txt</code>, parent directory is <code>/bucket/dir/</code>) 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 <code>AccessRole</code> needs to provide read and write access to the parent directory of the file location used in the <code>StartFileTransfer</code> request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with <code>StartFileTransfer</code>.</p> <p>If you are using Basic authentication for your AS2 connector, the access role requires the <code>secretsmanager:GetSecretValue</code> permission for the secret. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key in Secrets Manager, then the role also needs the <code>kms:Decrypt</code> permission for that key.</p> <p> <b>For SFTP connectors</b> </p> <p>Make sure that the access role provides read and write access to the parent directory of the file location that's used in the <code>StartFileTransfer</code> request. Additionally, make sure that the role provides <code>secretsmanager:GetSecretValue</code> permission to Secrets Manager.</p>"""
    tags: NotRequired["capo_transfer.types.tags.Tags"]
    """<p>Key-value pairs that can be used to group and search for agreements.</p>"""
    preserve_filename: NotRequired[
        "capo_transfer.types.preserve_filename_type.PreserveFilenameType"
    ]
    """<p> Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload filename when saving it. </p> <ul> <li> <p> <code>ENABLED</code>: the filename provided by your trading parter is preserved when the file is saved.</p> </li> <li> <p> <code>DISABLED</code> (default value): when Transfer Family saves the file, the filename is adjusted, as described in <a href="https://docs.aws.amazon.com/transfer/latest/userguide/send-as2-messages.html#file-names-as2">File names and locations</a>.</p> </li> </ul>"""
    enforce_message_signing: NotRequired[
        "capo_transfer.types.enforce_message_signing_type.EnforceMessageSigningType"
    ]
    """<p> Determines whether or not unsigned messages from your trading partners will be accepted. </p> <ul> <li> <p> <code>ENABLED</code>: Transfer Family rejects unsigned messages from your trading partner.</p> </li> <li> <p> <code>DISABLED</code> (default value): Transfer Family accepts unsigned messages from your trading partner.</p> </li> </ul>"""
    custom_directories: NotRequired[
        "capo_transfer.types.custom_directories_type.CustomDirectoriesType"
    ]
    """<p>A <code>CustomDirectoriesType</code> structure. This structure specifies custom directories for storing various AS2 message files. You can specify directories for the following types of files.</p> <ul> <li> <p>Failed files</p> </li> <li> <p>MDN files</p> </li> <li> <p>Payload files</p> </li> <li> <p>Status files</p> </li> <li> <p>Temporary files</p> </li> </ul>"""

access_role instance-attribute

access_role: NotRequired[Role]

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 Identity and Access Management role to use.

For AS2 connectors

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.

If you are using Basic authentication for your AS2 connector, the access role requires the secretsmanager:GetSecretValue permission for the secret. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key in Secrets Manager, then the role also needs the kms:Decrypt permission 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 StartFileTransfer request. Additionally, make sure that the role provides secretsmanager:GetSecretValue permission to Secrets Manager.

agreement_id instance-attribute

agreement_id: NotRequired[AgreementId]

A unique identifier for the agreement. This identifier is returned when you create an agreement.

arn instance-attribute

arn: Arn

The unique Amazon Resource Name (ARN) for the agreement.

base_directory instance-attribute

base_directory: NotRequired[HomeDirectory]

The landing directory (folder) for files that are transferred by using the AS2 protocol.

custom_directories instance-attribute

custom_directories: NotRequired[CustomDirectoriesType]

A CustomDirectoriesType structure. This structure specifies custom directories for storing various AS2 message files. You can specify directories for the following types of files.

  • Failed files

  • MDN files

  • Payload files

  • Status files

  • Temporary files

description instance-attribute

description: NotRequired[Description]

The name or short description that's used to identify the agreement.

enforce_message_signing instance-attribute

enforce_message_signing: NotRequired[EnforceMessageSigningType]

Determines whether or not unsigned messages from your trading partners will be accepted.

  • ENABLED: Transfer Family rejects unsigned messages from your trading partner.

  • DISABLED (default value): Transfer Family accepts unsigned messages from your trading partner.

local_profile_id instance-attribute

local_profile_id: NotRequired[ProfileId]

A unique identifier for the AS2 local profile.

partner_profile_id instance-attribute

partner_profile_id: NotRequired[ProfileId]

A unique identifier for the partner profile used in the agreement.

preserve_filename instance-attribute

preserve_filename: NotRequired[PreserveFilenameType]

Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload filename when saving it.

  • ENABLED: the filename provided by your trading parter is preserved when the file is saved.

  • DISABLED (default value): when Transfer Family saves the file, the filename is adjusted, as described in File names and locations.

server_id instance-attribute

server_id: NotRequired[ServerId]

A system-assigned unique identifier for a server instance. This identifier indicates the specific server that the agreement uses.

status instance-attribute

status: NotRequired[AgreementStatusType]

The current status of the agreement, either ACTIVE or INACTIVE.

tags instance-attribute

tags: NotRequired[Tags]

Key-value pairs that can be used to group and search for agreements.