Delete a policy version
Arguments
- name
(character) a policy name. required. within the function we lookup the policy arn which is what's passed to the AWS API
- version_id
(character) The policy version to delete. required. Allows (via regex) a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.
See also
Other policies:
as_policy_arn()
,
aws_policies()
,
aws_policy()
,
aws_policy_attach()
,
aws_policy_create()
,
aws_policy_delete()
,
aws_policy_detach()
,
aws_policy_exists()
,
aws_policy_list_entities()
,
aws_policy_list_versions()
Examples
if (FALSE) { # interactive()
doc <- aws_policy_document_create(
region = "us-east-2",
account_id = "1234567890",
resource_id = "*",
user = "jane_doe",
action = "rds-db:connect"
)
aws_policy_create("RdsAllow456", document = doc)
aws_policy_delete_version("RdsAllow456", "v1")
}