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.
Idawscc.vpclattice.auth_policies

Fields

NameDatatypeDescription
resource_identifierstring
policyobject
statestring
regionstringAWS region.

For more information, see AWS::VpcLattice::AuthPolicy.

Methods

NameAccessible byRequired Params
create_resourceINSERTResourceIdentifier, Policy, region
delete_resourceDELETEIdentifier, region
update_resourceUPDATEIdentifier, PatchDocument, region
get_resourceSELECTIdentifier, region

SELECT examples

Gets all properties from an individual auth_policy.

SELECT
region,
resource_identifier,
policy,
state
FROM awscc.vpclattice.auth_policies
WHERE
region = 'us-east-1' AND
Identifier = '{{ resource_identifier }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.vpclattice.auth_policies
SET PatchDocument = string('{{ {
"Policy": policy
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ resource_identifier }}';

DELETE example

/*+ delete */
DELETE FROM awscc.vpclattice.auth_policies
WHERE
Identifier = '{{ resource_identifier }}' AND
region = 'us-east-1';

Permissions

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

vpc-lattice:GetAuthPolicy,
vpc-lattice:PutAuthPolicy