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 |
This API is in preview release for Amazon Connect and is subject to change.
Associates a security key to the instance.
Synopsis
- data AssociateSecurityKey = AssociateSecurityKey' {
- instanceId :: Text
- key :: Text
- newAssociateSecurityKey :: Text -> Text -> AssociateSecurityKey
- associateSecurityKey_instanceId :: Lens' AssociateSecurityKey Text
- associateSecurityKey_key :: Lens' AssociateSecurityKey Text
- data AssociateSecurityKeyResponse = AssociateSecurityKeyResponse' {
- associationId :: Maybe Text
- httpStatus :: Int
- newAssociateSecurityKeyResponse :: Int -> AssociateSecurityKeyResponse
- associateSecurityKeyResponse_associationId :: Lens' AssociateSecurityKeyResponse (Maybe Text)
- associateSecurityKeyResponse_httpStatus :: Lens' AssociateSecurityKeyResponse Int
Creating a Request
data AssociateSecurityKey Source #
See: newAssociateSecurityKey
smart constructor.
AssociateSecurityKey' | |
|
Instances
newAssociateSecurityKey Source #
:: Text | |
-> Text | |
-> AssociateSecurityKey |
Create a value of AssociateSecurityKey
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:instanceId:AssociateSecurityKey'
, associateSecurityKey_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
$sel:key:AssociateSecurityKey'
, associateSecurityKey_key
- A valid security key in PEM format.
Request Lenses
associateSecurityKey_instanceId :: Lens' AssociateSecurityKey Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
associateSecurityKey_key :: Lens' AssociateSecurityKey Text Source #
A valid security key in PEM format.
Destructuring the Response
data AssociateSecurityKeyResponse Source #
See: newAssociateSecurityKeyResponse
smart constructor.
AssociateSecurityKeyResponse' | |
|
Instances
newAssociateSecurityKeyResponse Source #
Create a value of AssociateSecurityKeyResponse
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:associationId:AssociateSecurityKeyResponse'
, associateSecurityKeyResponse_associationId
- The existing association identifier that uniquely identifies the
resource type and storage config for the given instance ID.
$sel:httpStatus:AssociateSecurityKeyResponse'
, associateSecurityKeyResponse_httpStatus
- The response's http status code.
Response Lenses
associateSecurityKeyResponse_associationId :: Lens' AssociateSecurityKeyResponse (Maybe Text) Source #
The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.
associateSecurityKeyResponse_httpStatus :: Lens' AssociateSecurityKeyResponse Int Source #
The response's http status code.