AWS Doc SDK Examples
翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。
または DeleteVaultNotifications
AWS SDKで を使用する CLI
以下のコード例は、DeleteVaultNotifications
の使用方法を示しています。
- CLI
-
- AWS CLI
-
ボールトSNSの通知を削除するには
次の
delete-vault-notifications
例では、指定したボールトに対して Amazon Simple Notification Service (Amazon SNS) によって送信された通知を削除します。aws glacier delete-vault-notifications \ --account-id
111122223333
\ --vault-nameexample_vault
このコマンドは何も出力しません。
-
API 詳細については、AWS CLI 「 コマンドリファレンスDeleteVaultNotifications
」の「」を参照してください。
-
- Python
-
- SDK for Python (Boto3)
-
注記
詳細については、「」を参照してください GitHub。用例一覧を検索し、AWS コード例リポジトリ
での設定と実行の方法を確認してください。 class GlacierWrapper: """Encapsulates Amazon S3 Glacier API operations.""" def __init__(self, glacier_resource): """ :param glacier_resource: A Boto3 Amazon S3 Glacier resource. """ self.glacier_resource = glacier_resource @staticmethod def stop_notifications(notification): """ Stops notifications to the configured Amazon SNS topic. :param notification: The notification configuration to remove. """ try: notification.delete() logger.info("Notifications stopped.") except ClientError: logger.exception("Couldn't stop notifications.") raise
-
API 詳細については、「 for AWS SDKPython (Boto3) APIリファレンスDeleteVaultNotifications」の「」を参照してください。
-
DeleteVault
DescribeJob