amazonka-transfer-2.0: Amazon Transfer Family SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Transfer.UpdateAgreement

Description

Updates some of the parameters for an existing agreement. Provide the AgreementId and the ServerId for the agreement that you want to update, along with the new values for the parameters to update.

Synopsis

Creating a Request

data UpdateAgreement Source #

See: newUpdateAgreement smart constructor.

Constructors

UpdateAgreement' 

Fields

  • accessRole :: Maybe Text

    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.

  • baseDirectory :: Maybe Text

    To change the landing directory (folder) for files that are transferred, provide the bucket folder that you want to use; for example, /DOC-EXAMPLE-BUCKET/home/mydirectory .

  • description :: Maybe Text

    To replace the existing description, provide a short description for the agreement.

  • localProfileId :: Maybe Text

    A unique identifier for the AS2 local profile.

    To change the local profile identifier, provide a new value here.

  • partnerProfileId :: Maybe Text

    A unique identifier for the partner profile. To change the partner profile identifier, provide a new value here.

  • status :: Maybe AgreementStatusType

    You can update the status for the agreement, either activating an inactive agreement or the reverse.

  • agreementId :: Text

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

  • serverId :: Text

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

Instances

Instances details
ToJSON UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

ToHeaders UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

ToPath UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

ToQuery UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

AWSRequest UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

Associated Types

type AWSResponse UpdateAgreement #

Generic UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

Associated Types

type Rep UpdateAgreement :: Type -> Type #

Read UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

Show UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

NFData UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

Methods

rnf :: UpdateAgreement -> () #

Eq UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

Hashable UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

type AWSResponse UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

type Rep UpdateAgreement Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

newUpdateAgreement Source #

Create a value of UpdateAgreement with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

UpdateAgreement, updateAgreement_accessRole - 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.

UpdateAgreement, updateAgreement_baseDirectory - To change the landing directory (folder) for files that are transferred, provide the bucket folder that you want to use; for example, /DOC-EXAMPLE-BUCKET/home/mydirectory .

UpdateAgreement, updateAgreement_description - To replace the existing description, provide a short description for the agreement.

UpdateAgreement, updateAgreement_localProfileId - A unique identifier for the AS2 local profile.

To change the local profile identifier, provide a new value here.

UpdateAgreement, updateAgreement_partnerProfileId - A unique identifier for the partner profile. To change the partner profile identifier, provide a new value here.

UpdateAgreement, updateAgreement_status - You can update the status for the agreement, either activating an inactive agreement or the reverse.

UpdateAgreement, updateAgreement_agreementId - A unique identifier for the agreement. This identifier is returned when you create an agreement.

UpdateAgreement, updateAgreement_serverId - A system-assigned unique identifier for a server instance. This is the specific server that the agreement uses.

Request Lenses

updateAgreement_accessRole :: Lens' UpdateAgreement (Maybe Text) Source #

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.

updateAgreement_baseDirectory :: Lens' UpdateAgreement (Maybe Text) Source #

To change the landing directory (folder) for files that are transferred, provide the bucket folder that you want to use; for example, /DOC-EXAMPLE-BUCKET/home/mydirectory .

updateAgreement_description :: Lens' UpdateAgreement (Maybe Text) Source #

To replace the existing description, provide a short description for the agreement.

updateAgreement_localProfileId :: Lens' UpdateAgreement (Maybe Text) Source #

A unique identifier for the AS2 local profile.

To change the local profile identifier, provide a new value here.

updateAgreement_partnerProfileId :: Lens' UpdateAgreement (Maybe Text) Source #

A unique identifier for the partner profile. To change the partner profile identifier, provide a new value here.

updateAgreement_status :: Lens' UpdateAgreement (Maybe AgreementStatusType) Source #

You can update the status for the agreement, either activating an inactive agreement or the reverse.

updateAgreement_agreementId :: Lens' UpdateAgreement Text Source #

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

updateAgreement_serverId :: Lens' UpdateAgreement Text Source #

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

Destructuring the Response

data UpdateAgreementResponse Source #

See: newUpdateAgreementResponse smart constructor.

Constructors

UpdateAgreementResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • agreementId :: Text

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

Instances

Instances details
Generic UpdateAgreementResponse Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

Associated Types

type Rep UpdateAgreementResponse :: Type -> Type #

Read UpdateAgreementResponse Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

Show UpdateAgreementResponse Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

NFData UpdateAgreementResponse Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

Methods

rnf :: UpdateAgreementResponse -> () #

Eq UpdateAgreementResponse Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

type Rep UpdateAgreementResponse Source # 
Instance details

Defined in Amazonka.Transfer.UpdateAgreement

type Rep UpdateAgreementResponse = D1 ('MetaData "UpdateAgreementResponse" "Amazonka.Transfer.UpdateAgreement" "amazonka-transfer-2.0-JiqKYJwOo427yDlzvkXGLY" 'False) (C1 ('MetaCons "UpdateAgreementResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "agreementId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newUpdateAgreementResponse Source #

Create a value of UpdateAgreementResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:UpdateAgreementResponse', updateAgreementResponse_httpStatus - The response's http status code.

UpdateAgreement, updateAgreementResponse_agreementId - A unique identifier for the agreement. This identifier is returned when you create an agreement.

Response Lenses

updateAgreementResponse_agreementId :: Lens' UpdateAgreementResponse Text Source #

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