AWS::ResourceExplorer2::DefaultViewAssociation - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Sets the specified view as the default for the Amazon Web Services Region in which you call this operation. If a user makes a search query that doesn't explicitly specify the view to use, Resource Explorer chooses this default view automatically for searches performed in this Amazon Web Services Region.


To declare this entity in your Amazon CloudFormation template, use the following syntax:


{ "Type" : "AWS::ResourceExplorer2::DefaultViewAssociation", "Properties" : { "ViewArn" : String } }


Type: AWS::ResourceExplorer2::DefaultViewAssociation Properties: ViewArn: String



The ARN of the view to set as the default for the Amazon Web Services Region and Amazon Web Services account in which you call this operation. The specified view must already exist in the specified Region.

Required: Yes

Type: String

Minimum: 1

Maximum: 1011

Update requires: No interruption

Return values


When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the identity of the principal that the view is now associated with in the specified Amazon Web Services Region. For example:


For more information about using the Ref function, see Ref.


The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.


The unique identifier of the principal for which the specified view was made the default for the Amazon Web Services Region that contains the view. For example:



Designating the default view for the Region


{ "Description": "Sample stack template that designates SampleView as the default for its Region", "Resources": { "SampleDefaultViewAssociation": { "Type": "AWS::ResourceExplorer2::DefaultViewAssociation", "Properties": { "ViewArn": { "Ref": "SampleView" } } } } }


AWSTemplateFormatVersion: "2010-09-09" Description: Sample stack template that creates a resource-based policy for SampleView SampleDefaultViewAssociation: Type: 'AWS::ResourceExplorer2::DefaultViewAssociation' Properties: ViewArn: !Ref SampleView