amazonka-datasync-2.0: Amazon DataSync 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.DataSync.CreateLocationObjectStorage

Description

Creates an endpoint for an object storage system that DataSync can access for a transfer. For more information, see Creating a location for object storage.

Synopsis

Creating a Request

data CreateLocationObjectStorage Source #

CreateLocationObjectStorageRequest

See: newCreateLocationObjectStorage smart constructor.

Constructors

CreateLocationObjectStorage' 

Fields

  • accessKey :: Maybe Text

    Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.

  • secretKey :: Maybe (Sensitive Text)

    Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.

  • serverCertificate :: Maybe Base64

    Specifies a certificate to authenticate with an object storage system that uses a private or self-signed certificate authority (CA). You must specify a Base64-encoded .pem file (for example, file:///home/user/.ssh/storage_sys_certificate.pem). The certificate can be up to 32768 bytes (before Base64 encoding).

    To use this parameter, configure ServerProtocol to HTTPS.

  • serverPort :: Maybe Natural

    Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).

  • serverProtocol :: Maybe ObjectStorageServerProtocol

    Specifies the protocol that your object storage server uses to communicate.

  • subdirectory :: Maybe Text

    Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.

  • tags :: Maybe [TagListEntry]

    Specifies the key-value pair that represents a tag that you want to add to the resource. Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location.

  • serverHostname :: Text

    Specifies the domain name or IP address of the object storage server. A DataSync agent uses this hostname to mount the object storage server in a network.

  • bucketName :: Text

    Specifies the name of the object storage bucket involved in the transfer.

  • agentArns :: NonEmpty Text

    Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.

Instances

Instances details
ToJSON CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

ToHeaders CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

ToPath CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

ToQuery CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

AWSRequest CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

Generic CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

Associated Types

type Rep CreateLocationObjectStorage :: Type -> Type #

Show CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

NFData CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

Eq CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

Hashable CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

type AWSResponse CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

type Rep CreateLocationObjectStorage Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

newCreateLocationObjectStorage Source #

Create a value of CreateLocationObjectStorage 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:accessKey:CreateLocationObjectStorage', createLocationObjectStorage_accessKey - Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.

$sel:secretKey:CreateLocationObjectStorage', createLocationObjectStorage_secretKey - Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.

$sel:serverCertificate:CreateLocationObjectStorage', createLocationObjectStorage_serverCertificate - Specifies a certificate to authenticate with an object storage system that uses a private or self-signed certificate authority (CA). You must specify a Base64-encoded .pem file (for example, file:///home/user/.ssh/storage_sys_certificate.pem). The certificate can be up to 32768 bytes (before Base64 encoding).

To use this parameter, configure ServerProtocol to HTTPS.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

$sel:serverPort:CreateLocationObjectStorage', createLocationObjectStorage_serverPort - Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).

$sel:serverProtocol:CreateLocationObjectStorage', createLocationObjectStorage_serverProtocol - Specifies the protocol that your object storage server uses to communicate.

$sel:subdirectory:CreateLocationObjectStorage', createLocationObjectStorage_subdirectory - Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.

$sel:tags:CreateLocationObjectStorage', createLocationObjectStorage_tags - Specifies the key-value pair that represents a tag that you want to add to the resource. Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location.

$sel:serverHostname:CreateLocationObjectStorage', createLocationObjectStorage_serverHostname - Specifies the domain name or IP address of the object storage server. A DataSync agent uses this hostname to mount the object storage server in a network.

$sel:bucketName:CreateLocationObjectStorage', createLocationObjectStorage_bucketName - Specifies the name of the object storage bucket involved in the transfer.

CreateLocationObjectStorage, createLocationObjectStorage_agentArns - Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.

Request Lenses

createLocationObjectStorage_accessKey :: Lens' CreateLocationObjectStorage (Maybe Text) Source #

Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.

createLocationObjectStorage_secretKey :: Lens' CreateLocationObjectStorage (Maybe Text) Source #

Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.

createLocationObjectStorage_serverCertificate :: Lens' CreateLocationObjectStorage (Maybe ByteString) Source #

Specifies a certificate to authenticate with an object storage system that uses a private or self-signed certificate authority (CA). You must specify a Base64-encoded .pem file (for example, file:///home/user/.ssh/storage_sys_certificate.pem). The certificate can be up to 32768 bytes (before Base64 encoding).

To use this parameter, configure ServerProtocol to HTTPS.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

createLocationObjectStorage_serverPort :: Lens' CreateLocationObjectStorage (Maybe Natural) Source #

Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).

createLocationObjectStorage_serverProtocol :: Lens' CreateLocationObjectStorage (Maybe ObjectStorageServerProtocol) Source #

Specifies the protocol that your object storage server uses to communicate.

createLocationObjectStorage_subdirectory :: Lens' CreateLocationObjectStorage (Maybe Text) Source #

Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.

createLocationObjectStorage_tags :: Lens' CreateLocationObjectStorage (Maybe [TagListEntry]) Source #

Specifies the key-value pair that represents a tag that you want to add to the resource. Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location.

createLocationObjectStorage_serverHostname :: Lens' CreateLocationObjectStorage Text Source #

Specifies the domain name or IP address of the object storage server. A DataSync agent uses this hostname to mount the object storage server in a network.

createLocationObjectStorage_bucketName :: Lens' CreateLocationObjectStorage Text Source #

Specifies the name of the object storage bucket involved in the transfer.

createLocationObjectStorage_agentArns :: Lens' CreateLocationObjectStorage (NonEmpty Text) Source #

Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.

Destructuring the Response

data CreateLocationObjectStorageResponse Source #

CreateLocationObjectStorageResponse

See: newCreateLocationObjectStorageResponse smart constructor.

Constructors

CreateLocationObjectStorageResponse' 

Fields

Instances

Instances details
Generic CreateLocationObjectStorageResponse Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

Read CreateLocationObjectStorageResponse Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

Show CreateLocationObjectStorageResponse Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

NFData CreateLocationObjectStorageResponse Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

Eq CreateLocationObjectStorageResponse Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

type Rep CreateLocationObjectStorageResponse Source # 
Instance details

Defined in Amazonka.DataSync.CreateLocationObjectStorage

type Rep CreateLocationObjectStorageResponse = D1 ('MetaData "CreateLocationObjectStorageResponse" "Amazonka.DataSync.CreateLocationObjectStorage" "amazonka-datasync-2.0-LCcm4ddRe2z4CES4wun76Z" 'False) (C1 ('MetaCons "CreateLocationObjectStorageResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "locationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateLocationObjectStorageResponse Source #

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

CreateLocationObjectStorageResponse, createLocationObjectStorageResponse_locationArn - Specifies the ARN of the object storage system location that you create.

$sel:httpStatus:CreateLocationObjectStorageResponse', createLocationObjectStorageResponse_httpStatus - The response's http status code.

Response Lenses

createLocationObjectStorageResponse_locationArn :: Lens' CreateLocationObjectStorageResponse (Maybe Text) Source #

Specifies the ARN of the object storage system location that you create.