Skip to main content

auth_policies

Creates, updates, deletes or gets an auth_policy resource or lists auth_policies in a region

Overview

Nameauth_policies
TypeResource
DescriptionCreates or updates the auth policy.
Idaws.vpclattice.auth_policies

Fields

NameDatatypeDescription
resource_identifierstring
policyobject
statestring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTResourceIdentifier, Policy, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual auth_policy.

SELECT
region,
resource_identifier,
policy,
state
FROM aws.vpclattice.auth_policies
WHERE region = 'us-east-1' AND data__Identifier = '<ResourceIdentifier>';

INSERT example

Use the following StackQL query and manifest file to create a new auth_policy resource, using stack-deploy.

/*+ create */
INSERT INTO aws.vpclattice.auth_policies (
ResourceIdentifier,
Policy,
region
)
SELECT
'{{ ResourceIdentifier }}',
'{{ Policy }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.vpclattice.auth_policies
WHERE data__Identifier = '<ResourceIdentifier>'
AND region = 'us-east-1';

Permissions

To operate on the auth_policies resource, the following permissions are required:

Create

vpc-lattice:GetAuthPolicy,
vpc-lattice:PutAuthPolicy

Read

vpc-lattice:GetAuthPolicy

Update

vpc-lattice:GetAuthPolicy,
vpc-lattice:PutAuthPolicy

Delete

vpc-lattice:GetAuthPolicy,
vpc-lattice:DeleteAuthPolicy