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, ITaggableV2, IOrganizationCentralizationRuleRef, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-10-14T12:28:16.218Z") @Stability(Stable) public class CfnOrganizationCentralizationRule extends CfnResource implements IInspectable, IOrganizationCentralizationRuleRef, ITaggableV2
Resource schema for AWS:ObservabilityAdmin:OrganizationCentralizationRule.

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)
      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