Class CfnGroup

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

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:26.058Z") @Stability(Stable) public class CfnGroup extends CfnResource implements IInspectable, ITaggableV2
Use the AWS::XRay::Group resource to specify a group with a name and a filter expression.

Groups enable the collection of traces that match the filter expression, can be used to filter service graphs and traces, and to supply Amazon CloudWatch metrics.

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.xray.*;
 CfnGroup cfnGroup = CfnGroup.Builder.create(this, "MyCfnGroup")
         .groupName("groupName")
         // the properties below are optional
         .filterExpression("filterExpression")
         .insightsConfiguration(InsightsConfigurationProperty.builder()
                 .insightsEnabled(false)
                 .notificationsEnabled(false)
                 .build())
         .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

    • CfnGroup

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

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

      @Stability(Stable) public CfnGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnGroupProps 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

      @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.
    • getAttrGroupArn

      @Stability(Stable) @NotNull public String getAttrGroupArn()
      The group ARN that was created or updated.
    • 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
    • getGroupName

      @Stability(Stable) @NotNull public String getGroupName()
      The unique case-sensitive name of the group.
    • setGroupName

      @Stability(Stable) public void setGroupName(@NotNull String value)
      The unique case-sensitive name of the group.
    • getFilterExpression

      @Stability(Stable) @Nullable public String getFilterExpression()
      The filter expression defining the parameters to include traces.
    • setFilterExpression

      @Stability(Stable) public void setFilterExpression(@Nullable String value)
      The filter expression defining the parameters to include traces.
    • getInsightsConfiguration

      @Stability(Stable) @Nullable public Object getInsightsConfiguration()
      The structure containing configurations related to insights.
    • setInsightsConfiguration

      @Stability(Stable) public void setInsightsConfiguration(@Nullable IResolvable value)
      The structure containing configurations related to insights.
    • setInsightsConfiguration

      @Stability(Stable) public void setInsightsConfiguration(@Nullable CfnGroup.InsightsConfigurationProperty value)
      The structure containing configurations related to insights.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      An array of key-value pairs to apply to this resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      An array of key-value pairs to apply to this resource.