Class CfnOrganizationCentralizationRule

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

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-12-01T16:02:25.139Z") @Stability(Stable) public class CfnOrganizationCentralizationRule extends CfnResource implements IInspectable, IOrganizationCentralizationRuleRef, ITaggableV2
Defines how telemetry data should be centralized across an AWS Organization, including source and destination configurations.

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.*;
 CfnOrganizationCentralizationRule cfnOrganizationCentralizationRule = CfnOrganizationCentralizationRule.Builder.create(this, "MyCfnOrganizationCentralizationRule")
         .rule(CentralizationRuleProperty.builder()
                 .destination(CentralizationRuleDestinationProperty.builder()
                         .region("region")
                         // the properties below are optional
                         .account("account")
                         .destinationLogsConfiguration(DestinationLogsConfigurationProperty.builder()
                                 .backupConfiguration(LogsBackupConfigurationProperty.builder()
                                         .region("region")
                                         // the properties below are optional
                                         .kmsKeyArn("kmsKeyArn")
                                         .build())
                                 .logsEncryptionConfiguration(LogsEncryptionConfigurationProperty.builder()
                                         .encryptionStrategy("encryptionStrategy")
                                         // the properties below are optional
                                         .encryptionConflictResolutionStrategy("encryptionConflictResolutionStrategy")
                                         .kmsKeyArn("kmsKeyArn")
                                         .build())
                                 .build())
                         .build())
                 .source(CentralizationRuleSourceProperty.builder()
                         .regions(List.of("regions"))
                         // the properties below are optional
                         .scope("scope")
                         .sourceLogsConfiguration(SourceLogsConfigurationProperty.builder()
                                 .encryptedLogGroupStrategy("encryptedLogGroupStrategy")
                                 .logGroupSelectionCriteria("logGroupSelectionCriteria")
                                 .build())
                         .build())
                 .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

    • CfnOrganizationCentralizationRule

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

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

      @Stability(Stable) public CfnOrganizationCentralizationRule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnOrganizationCentralizationRuleProps props)
      Create a new AWS::ObservabilityAdmin::OrganizationCentralizationRule.

      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

    • isCfnOrganizationCentralizationRule

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

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

      @Stability(Stable) @NotNull public String getAttrRuleArn()
      The Amazon Resource Name (ARN) of the organization centralization 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
    • getOrganizationCentralizationRuleRef

      @Stability(Stable) @NotNull public OrganizationCentralizationRuleReference getOrganizationCentralizationRuleRef()
      A reference to a OrganizationCentralizationRule resource.
      Specified by:
      getOrganizationCentralizationRuleRef in interface IOrganizationCentralizationRuleRef
    • getRule

      @Stability(Stable) @NotNull public Object getRule()
    • setRule

      @Stability(Stable) public void setRule(@NotNull IResolvable value)
    • setRule

      @Stability(Stable) public void setRule(@NotNull CfnOrganizationCentralizationRule.CentralizationRuleProperty value)
    • getRuleName

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

      @Stability(Stable) public void setRuleName(@NotNull String value)
      The name of the organization centralization rule.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      A key-value pair to filter resources based on tags associated with the resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      A key-value pair to filter resources based on tags associated with the resource.