| 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.Grafana.DeleteWorkspaceApiKey
Description
Deletes a Grafana API key for the workspace.
Synopsis
- data DeleteWorkspaceApiKey = DeleteWorkspaceApiKey' {
- keyName :: Text
- workspaceId :: Text
- newDeleteWorkspaceApiKey :: Text -> Text -> DeleteWorkspaceApiKey
- deleteWorkspaceApiKey_keyName :: Lens' DeleteWorkspaceApiKey Text
- deleteWorkspaceApiKey_workspaceId :: Lens' DeleteWorkspaceApiKey Text
- data DeleteWorkspaceApiKeyResponse = DeleteWorkspaceApiKeyResponse' {
- httpStatus :: Int
- keyName :: Text
- workspaceId :: Text
- newDeleteWorkspaceApiKeyResponse :: Int -> Text -> Text -> DeleteWorkspaceApiKeyResponse
- deleteWorkspaceApiKeyResponse_httpStatus :: Lens' DeleteWorkspaceApiKeyResponse Int
- deleteWorkspaceApiKeyResponse_keyName :: Lens' DeleteWorkspaceApiKeyResponse Text
- deleteWorkspaceApiKeyResponse_workspaceId :: Lens' DeleteWorkspaceApiKeyResponse Text
Creating a Request
data DeleteWorkspaceApiKey Source #
See: newDeleteWorkspaceApiKey smart constructor.
Constructors
| DeleteWorkspaceApiKey' | |
Fields
| |
Instances
newDeleteWorkspaceApiKey Source #
Arguments
| :: Text | |
| -> Text | |
| -> DeleteWorkspaceApiKey |
Create a value of DeleteWorkspaceApiKey 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:
DeleteWorkspaceApiKey, deleteWorkspaceApiKey_keyName - The name of the API key to delete.
DeleteWorkspaceApiKey, deleteWorkspaceApiKey_workspaceId - The ID of the workspace to delete.
Request Lenses
deleteWorkspaceApiKey_keyName :: Lens' DeleteWorkspaceApiKey Text Source #
The name of the API key to delete.
deleteWorkspaceApiKey_workspaceId :: Lens' DeleteWorkspaceApiKey Text Source #
The ID of the workspace to delete.
Destructuring the Response
data DeleteWorkspaceApiKeyResponse Source #
See: newDeleteWorkspaceApiKeyResponse smart constructor.
Constructors
| DeleteWorkspaceApiKeyResponse' | |
Fields
| |
Instances
newDeleteWorkspaceApiKeyResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> DeleteWorkspaceApiKeyResponse |
Create a value of DeleteWorkspaceApiKeyResponse 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:DeleteWorkspaceApiKeyResponse', deleteWorkspaceApiKeyResponse_httpStatus - The response's http status code.
DeleteWorkspaceApiKey, deleteWorkspaceApiKeyResponse_keyName - The name of the key that was deleted.
DeleteWorkspaceApiKey, deleteWorkspaceApiKeyResponse_workspaceId - The ID of the workspace where the key was deleted.
Response Lenses
deleteWorkspaceApiKeyResponse_httpStatus :: Lens' DeleteWorkspaceApiKeyResponse Int Source #
The response's http status code.
deleteWorkspaceApiKeyResponse_keyName :: Lens' DeleteWorkspaceApiKeyResponse Text Source #
The name of the key that was deleted.
deleteWorkspaceApiKeyResponse_workspaceId :: Lens' DeleteWorkspaceApiKeyResponse Text Source #
The ID of the workspace where the key was deleted.