Class CfnOrganizationTelemetryRule

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.observabilityadmin.CfnOrganizationTelemetryRule
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-08-12T14:44:20.117Z") @Stability(Stable) public class CfnOrganizationTelemetryRule extends CfnResource implements IInspectable, ITaggableV2
The AWS::ObservabilityAdmin::OrganizationTelemetryRule resource defines a CloudWatch Observability Admin Organization Telemetry Rule.

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.observabilityadmin.*;
 CfnOrganizationTelemetryRule cfnOrganizationTelemetryRule = CfnOrganizationTelemetryRule.Builder.create(this, "MyCfnOrganizationTelemetryRule")
         .rule(TelemetryRuleProperty.builder()
                 .resourceType("resourceType")
                 .telemetryType("telemetryType")
                 // the properties below are optional
                 .destinationConfiguration(TelemetryDestinationConfigurationProperty.builder()
                         .destinationPattern("destinationPattern")
                         .destinationType("destinationType")
                         .retentionInDays(123)
                         .vpcFlowLogParameters(VPCFlowLogParametersProperty.builder()
                                 .logFormat("logFormat")
                                 .maxAggregationInterval(123)
                                 .trafficType("trafficType")
                                 .build())
                         .build())
                 .scope("scope")
                 .selectionCriteria("selectionCriteria")
                 .build())
         .ruleName("ruleName")
         // 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

    • CfnOrganizationTelemetryRule

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

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

      @Stability(Stable) public CfnOrganizationTelemetryRule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnOrganizationTelemetryRuleProps 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.
    • getAttrRuleArn

      @Stability(Stable) @NotNull public String getAttrRuleArn()
      The arn of the organization telemetry rule.
    • 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
    • getRule

      @Stability(Stable) @NotNull public Object getRule()
      The telemetry rule.
    • setRule

      @Stability(Stable) public void setRule(@NotNull IResolvable value)
      The telemetry rule.
    • setRule

      @Stability(Stable) public void setRule(@NotNull CfnOrganizationTelemetryRule.TelemetryRuleProperty value)
      The telemetry rule.
    • getRuleName

      @Stability(Stable) @NotNull public String getRuleName()
      The name of the organization telemetry rule.
    • setRuleName

      @Stability(Stable) public void setRuleName(@NotNull String value)
      The name of the organization telemetry rule.
    • 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.