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

@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)", date="2026-09-30T11:04:56.421Z") @Stability(Stable) public class CfnScope extends CfnResource implements IInspectable, IScopeRef, ITaggableV2
Resource Type definition for AWS::NetworkFlowMonitor::Scope.

Creates a scope to define the resources that Network Flow Monitor monitors for network performance.

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.networkflowmonitor.*;
 CfnScope cfnScope = CfnScope.Builder.create(this, "MyCfnScope")
         .targets(List.of(TargetResourceProperty.builder()
                 .region("region")
                 .targetIdentifier(TargetIdentifierProperty.builder()
                         .targetId(TargetIdProperty.builder()
                                 .accountId("accountId")
                                 .build())
                         .targetType("targetType")
                         .build())
                 .build()))
         // the properties below are optional
         .tags(List.of(CfnTag.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

    • CfnScope

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

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

      @Stability(Stable) public CfnScope(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnScopeProps props)
      Create a new AWS::NetworkFlowMonitor::Scope.

      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

    • arnForScope

      @Stability(Stable) @NotNull public static String arnForScope(@NotNull IScopeRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnScope

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

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

      @Stability(Stable) @NotNull public String getAttrScopeArn()
      The Amazon Resource Name (ARN) of the scope.
    • getAttrScopeId

      @Stability(Stable) @NotNull public String getAttrScopeId()
      The identifier for the scope.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The status of the scope.
    • 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
    • getScopeRef

      @Stability(Stable) @NotNull public ScopeReference getScopeRef()
      A reference to a Scope resource.
      Specified by:
      getScopeRef in interface IScopeRef
    • getTargets

      @Stability(Stable) @NotNull public Object getTargets()
      The targets for the scope.

      Returns union: either IResolvable or Listinvalid input: '<'either IResolvable or CfnScope.TargetResourceProperty>

    • setTargets

      @Stability(Stable) public void setTargets(@NotNull IResolvable value)
      The targets for the scope.
    • setTargets

      @Stability(Stable) public void setTargets(@NotNull List<Object> value)
      The targets for the scope.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags for the scope.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags for the scope.