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.CreateConnector

Description

Creates the connector, which captures the parameters for an outbound connection for the AS2 protocol. The connector is required for sending files to an externally hosted AS2 server. For more details about connectors, see Create AS2 connectors.

Synopsis

Creating a Request

data CreateConnector Source #

See: newCreateConnector smart constructor.

Constructors

CreateConnector' 

Fields

  • loggingRole :: Maybe Text

    The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs.

  • tags :: Maybe (NonEmpty Tag)

    Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.

  • url :: Text

    The URL of the partner's AS2 endpoint.

  • as2Config :: As2ConnectorConfig

    A structure that contains the parameters for a connector object.

  • accessRole :: 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.

Instances

Instances details
ToJSON CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

ToHeaders CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

ToPath CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

ToQuery CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

AWSRequest CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

Associated Types

type AWSResponse CreateConnector #

Generic CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

Associated Types

type Rep CreateConnector :: Type -> Type #

Read CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

Show CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

NFData CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

Methods

rnf :: CreateConnector -> () #

Eq CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

Hashable CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

type AWSResponse CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

type Rep CreateConnector Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

type Rep CreateConnector = D1 ('MetaData "CreateConnector" "Amazonka.Transfer.CreateConnector" "amazonka-transfer-2.0-JiqKYJwOo427yDlzvkXGLY" 'False) (C1 ('MetaCons "CreateConnector'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "loggingRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Tag)))) :*: (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "as2Config") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 As2ConnectorConfig) :*: S1 ('MetaSel ('Just "accessRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateConnector Source #

Create a value of CreateConnector 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:

CreateConnector, createConnector_loggingRole - The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs.

CreateConnector, createConnector_tags - Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.

CreateConnector, createConnector_url - The URL of the partner's AS2 endpoint.

CreateConnector, createConnector_as2Config - A structure that contains the parameters for a connector object.

CreateConnector, createConnector_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.

Request Lenses

createConnector_loggingRole :: Lens' CreateConnector (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs.

createConnector_tags :: Lens' CreateConnector (Maybe (NonEmpty Tag)) Source #

Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.

createConnector_url :: Lens' CreateConnector Text Source #

The URL of the partner's AS2 endpoint.

createConnector_as2Config :: Lens' CreateConnector As2ConnectorConfig Source #

A structure that contains the parameters for a connector object.

createConnector_accessRole :: Lens' CreateConnector 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.

Destructuring the Response

data CreateConnectorResponse Source #

See: newCreateConnectorResponse smart constructor.

Constructors

CreateConnectorResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • connectorId :: Text

    The unique identifier for the connector, returned after the API call succeeds.

Instances

Instances details
Generic CreateConnectorResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

Associated Types

type Rep CreateConnectorResponse :: Type -> Type #

Read CreateConnectorResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

Show CreateConnectorResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

NFData CreateConnectorResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

Methods

rnf :: CreateConnectorResponse -> () #

Eq CreateConnectorResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

type Rep CreateConnectorResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateConnector

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

newCreateConnectorResponse Source #

Create a value of CreateConnectorResponse 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:CreateConnectorResponse', createConnectorResponse_httpStatus - The response's http status code.

CreateConnectorResponse, createConnectorResponse_connectorId - The unique identifier for the connector, returned after the API call succeeds.

Response Lenses

createConnectorResponse_connectorId :: Lens' CreateConnectorResponse Text Source #

The unique identifier for the connector, returned after the API call succeeds.