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 operation retrieves the notification-configuration
subresource of
the specified vault.
For information about setting a notification configuration on a vault,
see SetVaultNotifications. If a notification configuration for a vault
is not set, the operation returns a 404 Not Found
error. For more
information about vault notifications, see
Configuring Vault Notifications in Amazon S3 Glacier.
An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).
For conceptual information and underlying REST API, see Configuring Vault Notifications in Amazon S3 Glacier and Get Vault Notification Configuration in the Amazon Glacier Developer Guide.
Synopsis
- data GetVaultNotifications = GetVaultNotifications' {}
- newGetVaultNotifications :: Text -> Text -> GetVaultNotifications
- getVaultNotifications_accountId :: Lens' GetVaultNotifications Text
- getVaultNotifications_vaultName :: Lens' GetVaultNotifications Text
- data GetVaultNotificationsResponse = GetVaultNotificationsResponse' {}
- newGetVaultNotificationsResponse :: Int -> GetVaultNotificationsResponse
- getVaultNotificationsResponse_vaultNotificationConfig :: Lens' GetVaultNotificationsResponse (Maybe VaultNotificationConfig)
- getVaultNotificationsResponse_httpStatus :: Lens' GetVaultNotificationsResponse Int
Creating a Request
data GetVaultNotifications Source #
Provides options for retrieving the notification configuration set on an Amazon Glacier vault.
See: newGetVaultNotifications
smart constructor.
GetVaultNotifications' | |
|
Instances
newGetVaultNotifications Source #
:: Text | |
-> Text | |
-> GetVaultNotifications |
Create a value of GetVaultNotifications
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:accountId:GetVaultNotifications'
, getVaultNotifications_accountId
- The AccountId
value is the AWS account ID of the account that owns the
vault. You can either specify an AWS account ID or optionally a single
'-
' (hyphen), in which case Amazon S3 Glacier uses the AWS account
ID associated with the credentials used to sign the request. If you use
an account ID, do not include any hyphens ('-') in the ID.
$sel:vaultName:GetVaultNotifications'
, getVaultNotifications_vaultName
- The name of the vault.
Request Lenses
getVaultNotifications_accountId :: Lens' GetVaultNotifications Text Source #
The AccountId
value is the AWS account ID of the account that owns the
vault. You can either specify an AWS account ID or optionally a single
'-
' (hyphen), in which case Amazon S3 Glacier uses the AWS account
ID associated with the credentials used to sign the request. If you use
an account ID, do not include any hyphens ('-') in the ID.
getVaultNotifications_vaultName :: Lens' GetVaultNotifications Text Source #
The name of the vault.
Destructuring the Response
data GetVaultNotificationsResponse Source #
Contains the Amazon S3 Glacier response to your request.
See: newGetVaultNotificationsResponse
smart constructor.
GetVaultNotificationsResponse' | |
|
Instances
newGetVaultNotificationsResponse Source #
Create a value of GetVaultNotificationsResponse
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:vaultNotificationConfig:GetVaultNotificationsResponse'
, getVaultNotificationsResponse_vaultNotificationConfig
- Returns the notification configuration set on the vault.
$sel:httpStatus:GetVaultNotificationsResponse'
, getVaultNotificationsResponse_httpStatus
- The response's http status code.
Response Lenses
getVaultNotificationsResponse_vaultNotificationConfig :: Lens' GetVaultNotificationsResponse (Maybe VaultNotificationConfig) Source #
Returns the notification configuration set on the vault.
getVaultNotificationsResponse_httpStatus :: Lens' GetVaultNotificationsResponse Int Source #
The response's http status code.