Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates an endpoint for a self-managed object storage bucket. For more information about self-managed object storage locations, see Creating a location for object storage.
Synopsis
- data CreateLocationObjectStorage = CreateLocationObjectStorage' {}
- newCreateLocationObjectStorage :: Text -> Text -> NonEmpty Text -> CreateLocationObjectStorage
- createLocationObjectStorage_serverPort :: Lens' CreateLocationObjectStorage (Maybe Natural)
- createLocationObjectStorage_serverProtocol :: Lens' CreateLocationObjectStorage (Maybe ObjectStorageServerProtocol)
- createLocationObjectStorage_secretKey :: Lens' CreateLocationObjectStorage (Maybe Text)
- createLocationObjectStorage_subdirectory :: Lens' CreateLocationObjectStorage (Maybe Text)
- createLocationObjectStorage_accessKey :: Lens' CreateLocationObjectStorage (Maybe Text)
- createLocationObjectStorage_tags :: Lens' CreateLocationObjectStorage (Maybe [TagListEntry])
- createLocationObjectStorage_serverHostname :: Lens' CreateLocationObjectStorage Text
- createLocationObjectStorage_bucketName :: Lens' CreateLocationObjectStorage Text
- createLocationObjectStorage_agentArns :: Lens' CreateLocationObjectStorage (NonEmpty Text)
- data CreateLocationObjectStorageResponse = CreateLocationObjectStorageResponse' {
- locationArn :: Maybe Text
- httpStatus :: Int
- newCreateLocationObjectStorageResponse :: Int -> CreateLocationObjectStorageResponse
- createLocationObjectStorageResponse_locationArn :: Lens' CreateLocationObjectStorageResponse (Maybe Text)
- createLocationObjectStorageResponse_httpStatus :: Lens' CreateLocationObjectStorageResponse Int
Creating a Request
data CreateLocationObjectStorage Source #
CreateLocationObjectStorageRequest
See: newCreateLocationObjectStorage
smart constructor.
CreateLocationObjectStorage' | |
|
Instances
newCreateLocationObjectStorage Source #
:: Text | |
-> Text | |
-> NonEmpty Text | |
-> CreateLocationObjectStorage |
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:serverPort:CreateLocationObjectStorage'
, createLocationObjectStorage_serverPort
- The port that your self-managed object storage server accepts inbound
network traffic on. The server port is set by default to TCP 80 (HTTP)
or TCP 443 (HTTPS). You can specify a custom port if your self-managed
object storage server requires one.
$sel:serverProtocol:CreateLocationObjectStorage'
, createLocationObjectStorage_serverProtocol
- The protocol that the object storage server uses to communicate. Valid
values are HTTP or HTTPS.
$sel:secretKey:CreateLocationObjectStorage'
, createLocationObjectStorage_secretKey
- Optional. The secret key is used if credentials are required to access
the self-managed object storage server. If your object storage requires
a user name and password to authenticate, use AccessKey
and
SecretKey
to provide the user name and password, respectively.
$sel:subdirectory:CreateLocationObjectStorage'
, createLocationObjectStorage_subdirectory
- The subdirectory in the self-managed object storage server that is used
to read data from.
$sel:accessKey:CreateLocationObjectStorage'
, createLocationObjectStorage_accessKey
- Optional. The access key is used if credentials are required to access
the self-managed object storage server. If your object storage requires
a user name and password to authenticate, use AccessKey
and
SecretKey
to provide the user name and password, respectively.
$sel:tags:CreateLocationObjectStorage'
, createLocationObjectStorage_tags
- The key-value pair that represents the tag that you want to add to the
location. The value can be an empty string. We recommend using tags to
name your resources.
$sel:serverHostname:CreateLocationObjectStorage'
, createLocationObjectStorage_serverHostname
- The name of the self-managed object storage server. This value is the IP
address or Domain Name Service (DNS) name of the object storage server.
An agent uses this host name to mount the object storage server in a
network.
$sel:bucketName:CreateLocationObjectStorage'
, createLocationObjectStorage_bucketName
- The bucket on the self-managed object storage server that is used to
read data from.
$sel:agentArns:CreateLocationObjectStorage'
, createLocationObjectStorage_agentArns
- The Amazon Resource Name (ARN) of the agents associated with the
self-managed object storage server location.
Request Lenses
createLocationObjectStorage_serverPort :: Lens' CreateLocationObjectStorage (Maybe Natural) Source #
The port that your self-managed object storage server accepts inbound network traffic on. The server port is set by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed object storage server requires one.
createLocationObjectStorage_serverProtocol :: Lens' CreateLocationObjectStorage (Maybe ObjectStorageServerProtocol) Source #
The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS.
createLocationObjectStorage_secretKey :: Lens' CreateLocationObjectStorage (Maybe Text) Source #
Optional. The secret key is used if credentials are required to access
the self-managed object storage server. If your object storage requires
a user name and password to authenticate, use AccessKey
and
SecretKey
to provide the user name and password, respectively.
createLocationObjectStorage_subdirectory :: Lens' CreateLocationObjectStorage (Maybe Text) Source #
The subdirectory in the self-managed object storage server that is used to read data from.
createLocationObjectStorage_accessKey :: Lens' CreateLocationObjectStorage (Maybe Text) Source #
Optional. The access key is used if credentials are required to access
the self-managed object storage server. If your object storage requires
a user name and password to authenticate, use AccessKey
and
SecretKey
to provide the user name and password, respectively.
createLocationObjectStorage_tags :: Lens' CreateLocationObjectStorage (Maybe [TagListEntry]) Source #
The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.
createLocationObjectStorage_serverHostname :: Lens' CreateLocationObjectStorage Text Source #
The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) name of the object storage server. An agent uses this host name to mount the object storage server in a network.
createLocationObjectStorage_bucketName :: Lens' CreateLocationObjectStorage Text Source #
The bucket on the self-managed object storage server that is used to read data from.
createLocationObjectStorage_agentArns :: Lens' CreateLocationObjectStorage (NonEmpty Text) Source #
The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
Destructuring the Response
data CreateLocationObjectStorageResponse Source #
CreateLocationObjectStorageResponse
See: newCreateLocationObjectStorageResponse
smart constructor.
CreateLocationObjectStorageResponse' | |
|
Instances
Eq CreateLocationObjectStorageResponse Source # | |
Read CreateLocationObjectStorageResponse Source # | |
Show CreateLocationObjectStorageResponse Source # | |
Generic CreateLocationObjectStorageResponse Source # | |
NFData CreateLocationObjectStorageResponse Source # | |
Defined in Amazonka.DataSync.CreateLocationObjectStorage rnf :: CreateLocationObjectStorageResponse -> () # | |
type Rep CreateLocationObjectStorageResponse Source # | |
Defined in Amazonka.DataSync.CreateLocationObjectStorage type Rep CreateLocationObjectStorageResponse = D1 ('MetaData "CreateLocationObjectStorageResponse" "Amazonka.DataSync.CreateLocationObjectStorage" "libZSservicesZSamazonka-datasyncZSamazonka-datasync" '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:
$sel:locationArn:CreateLocationObjectStorageResponse'
, createLocationObjectStorageResponse_locationArn
- The Amazon Resource Name (ARN) of the agents associated with the
self-managed object storage server location.
$sel:httpStatus:CreateLocationObjectStorageResponse'
, createLocationObjectStorageResponse_httpStatus
- The response's http status code.
Response Lenses
createLocationObjectStorageResponse_locationArn :: Lens' CreateLocationObjectStorageResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
createLocationObjectStorageResponse_httpStatus :: Lens' CreateLocationObjectStorageResponse Int Source #
The response's http status code.