glacier_set_data_retrieval_policy: This operation sets and then enacts a data retrieval policy...

Description Usage Arguments Value Request syntax Examples

View source: R/glacier_operations.R

Description

This operation sets and then enacts a data retrieval policy in the region specified in the PUT request. You can set one policy per region for an AWS account. The policy is enacted within a few minutes of a successful PUT operation.

The set policy operation does not affect retrieval jobs that were in progress before the policy was enacted. For more information about data retrieval policies, see Amazon Glacier Data Retrieval Policies.

Usage

1

Arguments

accountId

[required] The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.

Policy

The data retrieval policy in JSON format.

Value

An empty list.

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
svc$set_data_retrieval_policy(
  accountId = "string",
  Policy = list(
    Rules = list(
      list(
        Strategy = "string",
        BytesPerHour = 123
      )
    )
  )
)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
# The example sets and then enacts a data retrieval policy.
svc$set_data_retrieval_policy(
  Policy = list(
    Rules = list(
      list(
        BytesPerHour = 10737418240,
        Strategy = "BytesPerHour"
      )
    )
  ),
  accountId = "-"
)

## End(Not run)

paws.storage documentation built on Aug. 23, 2021, 1:06 a.m.