libZSservicesZSamazonka-glacierZSamazonka-glacier
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Glacier.GetVaultNotifications

Description

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

Creating a Request

data GetVaultNotifications Source #

Provides options for retrieving the notification configuration set on an Amazon Glacier vault.

See: newGetVaultNotifications smart constructor.

Constructors

GetVaultNotifications' 

Fields

  • accountId :: Text

    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.

  • vaultName :: Text

    The name of the vault.

Instances

Instances details
Eq GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

Read GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

Show GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

Generic GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

Associated Types

type Rep GetVaultNotifications :: Type -> Type #

NFData GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

Methods

rnf :: GetVaultNotifications -> () #

Hashable GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

AWSRequest GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

Associated Types

type AWSResponse GetVaultNotifications #

ToHeaders GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

ToPath GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

ToQuery GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

type Rep GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

type Rep GetVaultNotifications = D1 ('MetaData "GetVaultNotifications" "Amazonka.Glacier.GetVaultNotifications" "libZSservicesZSamazonka-glacierZSamazonka-glacier" 'False) (C1 ('MetaCons "GetVaultNotifications'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "vaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetVaultNotifications Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

newGetVaultNotifications Source #

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.

Destructuring the Response

data GetVaultNotificationsResponse Source #

Contains the Amazon S3 Glacier response to your request.

See: newGetVaultNotificationsResponse smart constructor.

Constructors

GetVaultNotificationsResponse' 

Fields

Instances

Instances details
Eq GetVaultNotificationsResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

Read GetVaultNotificationsResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

Show GetVaultNotificationsResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

Generic GetVaultNotificationsResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

Associated Types

type Rep GetVaultNotificationsResponse :: Type -> Type #

NFData GetVaultNotificationsResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

type Rep GetVaultNotificationsResponse Source # 
Instance details

Defined in Amazonka.Glacier.GetVaultNotifications

type Rep GetVaultNotificationsResponse = D1 ('MetaData "GetVaultNotificationsResponse" "Amazonka.Glacier.GetVaultNotifications" "libZSservicesZSamazonka-glacierZSamazonka-glacier" 'False) (C1 ('MetaCons "GetVaultNotificationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "vaultNotificationConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VaultNotificationConfig)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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