| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Connect.AssociateSecurityKey
Description
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.
Constructors
| AssociateSecurityKey' | |
Fields
| |
Instances
newAssociateSecurityKey Source #
Arguments
| :: 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:
AssociateSecurityKey, associateSecurityKey_instanceId - The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
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.
Constructors
| AssociateSecurityKeyResponse' | |
Fields
| |
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:
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.