Skip to main content

default_view_associations

Creates, updates, deletes or gets a default_view_association resource or lists default_view_associations in a region

Overview

Namedefault_view_associations
TypeResource
DescriptionDefinition of AWS::ResourceExplorer2::DefaultViewAssociation Resource Type
Idaws.resourceexplorer2.default_view_associations

Fields

NameDatatypeDescription
view_arnstring
associated_aws_principalstringThe AWS principal that the default view is associated with, used as the unique identifier for this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTViewArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual default_view_association.

SELECT
region,
view_arn,
associated_aws_principal
FROM aws.resourceexplorer2.default_view_associations
WHERE region = 'us-east-1' AND data__Identifier = '<AssociatedAwsPrincipal>';

INSERT example

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

/*+ create */
INSERT INTO aws.resourceexplorer2.default_view_associations (
ViewArn,
region
)
SELECT
'{{ ViewArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.resourceexplorer2.default_view_associations
WHERE data__Identifier = '<AssociatedAwsPrincipal>'
AND region = 'us-east-1';

Permissions

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

Create

resource-explorer-2:GetDefaultView,
resource-explorer-2:AssociateDefaultView

Update

resource-explorer-2:GetDefaultView,
resource-explorer-2:AssociateDefaultView

Read

resource-explorer-2:GetDefaultView

Delete

resource-explorer-2:GetDefaultView,
resource-explorer-2:DisassociateDefaultView