Class CfnView
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.resourceexplorer2.CfnView
- All Implemented Interfaces:
IInspectable,ITaggable,IViewRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:19.187Z")
@Stability(Stable)
public class CfnView
extends CfnResource
implements IInspectable, IViewRef, ITaggable
Creates a view that users can query by using the Search operation. Results from queries that you make using this view include only resources that match the view's
Filters .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.resourceexplorer2.*;
CfnView cfnView = CfnView.Builder.create(this, "MyCfnView")
.viewName("viewName")
// the properties below are optional
.filters(FiltersProperty.builder()
.filterString("filterString")
.build())
.includedProperties(List.of(IncludedPropertyProperty.builder()
.name("name")
.build()))
.scope("scope")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnView.static interfaceExample:static interfaceInformation about an additional property that describes a resource, that you can optionally include in a view.static interfaceA search filter defines which resources can be part of a search query result set.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.resourceexplorer2.IViewRef
IViewRef.Jsii$Default, IViewRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnView(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnView(software.amazon.jsii.JsiiObjectRef objRef) CfnView(software.constructs.Construct scope, String id, CfnViewProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the new view.An array of strings that include search keywords, prefixes, and operators that filter the results that are returned for queries made using this view.A list of fields that provide additional information about the view.getScope()The root ARN of the account, an organizational unit (OU), or an organization ARN.getTags()Tag Manager which manages the tags for this resource.Tag key and value pairs that are attached to the view.The name of the new view.A reference to a View resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetFilters(IResolvable value) An array of strings that include search keywords, prefixes, and operators that filter the results that are returned for queries made using this view.voidAn array of strings that include search keywords, prefixes, and operators that filter the results that are returned for queries made using this view.voidsetIncludedProperties(List<Object> value) A list of fields that provide additional information about the view.voidsetIncludedProperties(IResolvable value) A list of fields that provide additional information about the view.voidThe root ARN of the account, an organizational unit (OU), or an organization ARN.voidsetTagsRaw(Map<String, String> value) Tag key and value pairs that are attached to the view.voidsetViewName(String value) The name of the new view.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnView
protected CfnView(software.amazon.jsii.JsiiObjectRef objRef) -
CfnView
protected CfnView(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnView
@Stability(Stable) public CfnView(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnViewProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrViewArn
The ARN of the new view. For example:.arn:aws:resource-explorer-2:us-east-1:123456789012:view/MyView/EXAMPLE8-90ab-cdef-fedc-EXAMPLE22222 -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getViewRef
A reference to a View resource.- Specified by:
getViewRefin interfaceIViewRef
-
getViewName
The name of the new view. -
setViewName
The name of the new view. -
getFilters
An array of strings that include search keywords, prefixes, and operators that filter the results that are returned for queries made using this view. -
setFilters
An array of strings that include search keywords, prefixes, and operators that filter the results that are returned for queries made using this view. -
setFilters
An array of strings that include search keywords, prefixes, and operators that filter the results that are returned for queries made using this view. -
getIncludedProperties
A list of fields that provide additional information about the view. -
setIncludedProperties
A list of fields that provide additional information about the view. -
setIncludedProperties
A list of fields that provide additional information about the view. -
getScope
The root ARN of the account, an organizational unit (OU), or an organization ARN. -
setScope
The root ARN of the account, an organizational unit (OU), or an organization ARN. -
getTagsRaw
Tag key and value pairs that are attached to the view. -
setTagsRaw
Tag key and value pairs that are attached to the view.
-