Skip to main content

automatic_tape_creation_policies

Creates, updates, deletes, gets or lists an automatic_tape_creation_policies resource.

Overview

Nameautomatic_tape_creation_policies
TypeResource
Idaws.storagegateway.automatic_tape_creation_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
automatic_tape_creation_policy_infosarrayGets a listing of information about the gateway's automatic tape creation policies, including the automatic tape creation rules and the gateway that is using the policies.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_automatic_tape_creation_policiesselectregionLists the automatic tape creation policies for a gateway. If there are no automatic tape creation policies for the gateway, it returns an empty list. This operation is only supported for tape gateways.
update_automatic_tape_creation_policyupdateregion, AutomaticTapeCreationRules, GatewayARNUpdates the automatic tape creation policy of a gateway. Use this to update the policy with a new set of automatic tape creation rules. This is only supported for tape gateways. By default, there is no automatic tape creation policy. A gateway can have only one automatic tape creation policy.
delete_automatic_tape_creation_policydeleteregionDeletes the automatic tape creation policy of a gateway. If you delete this policy, new virtual tapes must be created manually. Use the Amazon Resource Name (ARN) of the gateway in your request to remove the policy.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Lists the automatic tape creation policies for a gateway. If there are no automatic tape creation policies for the gateway, it returns an empty list. This operation is only supported for tape gateways.

SELECT
automatic_tape_creation_policy_infos
FROM aws.storagegateway.automatic_tape_creation_policies
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the automatic tape creation policy of a gateway. Use this to update the policy with a new set of automatic tape creation rules. This is only supported for tape gateways. By default, there is no automatic tape creation policy. A gateway can have only one automatic tape creation policy.

UPDATE aws.storagegateway.automatic_tape_creation_policies
SET
AutomaticTapeCreationRules = '{{ AutomaticTapeCreationRules }}',
GatewayARN = '{{ GatewayARN }}'
WHERE
region = '{{ region }}' --required
AND AutomaticTapeCreationRules = '{{ AutomaticTapeCreationRules }}' --required
AND GatewayARN = '{{ GatewayARN }}' --required
RETURNING
gateway_arn;

DELETE examples

Deletes the automatic tape creation policy of a gateway. If you delete this policy, new virtual tapes must be created manually. Use the Amazon Resource Name (ARN) of the gateway in your request to remove the policy.

DELETE FROM aws.storagegateway.automatic_tape_creation_policies
WHERE region = '{{ region }}' --required
;