java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, ILensRef, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-08-10T14:51:13.764Z") @Stability(Stable) public class CfnLens extends CfnResource implements IInspectable, ILensRef, ITaggableV2
Definition of AWS::WellArchitected::Lens Resource Type.

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.wellarchitected.*;
 CfnLens cfnLens = CfnLens.Builder.create(this, "MyCfnLens")
         .jsonString("jsonString")
         .lensVersion("lensVersion")
         .tags(List.of(TagsItemsProperty.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnLens

      protected CfnLens(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnLens

      protected CfnLens(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnLens

      @Stability(Stable) public CfnLens(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnLensProps props)
      Create a new AWS::WellArchitected::Lens.

      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.
    • CfnLens

      @Stability(Stable) public CfnLens(@NotNull software.constructs.Construct scope, @NotNull String id)
      Create a new AWS::WellArchitected::Lens.

      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.
  • Method Details

    • arnForLens

      @Stability(Stable) @NotNull public static String arnForLens(@NotNull ILensRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnLens

      @Stability(Stable) @NotNull public static Boolean isCfnLens(@NotNull Object x)
      Checks whether the given object is a CfnLens.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrDescription

      @Stability(Stable) @NotNull public String getAttrDescription()
      The description of the lens.
    • getAttrLensArn

      @Stability(Stable) @NotNull public String getAttrLensArn()
      The ARN of the lens.
    • getAttrLensId

      @Stability(Stable) @NotNull public String getAttrLensId()
      The unique identifier of the lens.
    • getAttrName

      @Stability(Stable) @NotNull public String getAttrName()
      The full name of the lens.
    • getAttrOwner

      @Stability(Stable) @NotNull public String getAttrOwner()
      The Amazon Web Services account ID that owns the lens.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getLensRef

      @Stability(Stable) @NotNull public LensReference getLensRef()
      A reference to a Lens resource.
      Specified by:
      getLensRef in interface ILensRef
    • getJsonString

      @Stability(Stable) @Nullable public String getJsonString()
      The JSON representation of a lens.
    • setJsonString

      @Stability(Stable) public void setJsonString(@Nullable String value)
      The JSON representation of a lens.
    • getLensVersion

      @Stability(Stable) @Nullable public String getLensVersion()
      The version of the lens.
    • setLensVersion

      @Stability(Stable) public void setLensVersion(@Nullable String value)
      The version of the lens.
    • getTags

      @Stability(Stable) @Nullable public List<CfnLens.TagsItemsProperty> getTags()
      The tags assigned to the lens.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnLens.TagsItemsProperty> value)
      The tags assigned to the lens.