import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateCentralizationRuleForOrganizationInput, CreateCentralizationRuleForOrganizationOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateCentralizationRuleForOrganizationCommand}. */ export interface CreateCentralizationRuleForOrganizationCommandInput extends CreateCentralizationRuleForOrganizationInput { } /** * @public * * The output of {@link CreateCentralizationRuleForOrganizationCommand}. */ export interface CreateCentralizationRuleForOrganizationCommandOutput extends CreateCentralizationRuleForOrganizationOutput, __MetadataBearer { } declare const CreateCentralizationRuleForOrganizationCommand_base: { new (input: CreateCentralizationRuleForOrganizationCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateCentralizationRuleForOrganizationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a centralization rule that applies across an Amazon Web Services Organization. This operation can only be called by the organization's management account or a delegated administrator account.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ObservabilityAdminClient, CreateCentralizationRuleForOrganizationCommand } from "@aws-sdk/client-observabilityadmin"; // ES Modules import * // const { ObservabilityAdminClient, CreateCentralizationRuleForOrganizationCommand } = require("@aws-sdk/client-observabilityadmin"); // CommonJS import * // import type { ObservabilityAdminClientConfig } from "@aws-sdk/client-observabilityadmin"; * const config = {}; // type is ObservabilityAdminClientConfig * const client = new ObservabilityAdminClient(config); * const input = { // CreateCentralizationRuleForOrganizationInput * RuleName: "STRING_VALUE", // required * Rule: { // CentralizationRule * Source: { // CentralizationRuleSource * Regions: [ // Regions // required * "STRING_VALUE", * ], * Scope: "STRING_VALUE", * SourceLogsConfiguration: { // SourceLogsConfiguration * LogGroupSelectionCriteria: "STRING_VALUE", * DataSourceSelectionCriteria: "STRING_VALUE", * EncryptedLogGroupStrategy: "ALLOW" || "SKIP", // required * }, * SourceMetricsConfiguration: { // SourceMetricsConfiguration * MetricsSelectionCriteria: "STRING_VALUE", * }, * SourceContextGraphConfiguration: {}, * }, * Destination: { // CentralizationRuleDestination * Region: "STRING_VALUE", // required * Account: "STRING_VALUE", * DestinationLogsConfiguration: { // DestinationLogsConfiguration * LogsEncryptionConfiguration: { // LogsEncryptionConfiguration * EncryptionStrategy: "CUSTOMER_MANAGED" || "AWS_OWNED", // required * KmsKeyArn: "STRING_VALUE", * EncryptionConflictResolutionStrategy: "ALLOW" || "SKIP", * EncryptionScope: "ENCRYPTED_SOURCE_ONLY" || "NEW_DESTINATION_LOG_GROUPS", * }, * BackupConfiguration: { // LogsBackupConfiguration * Region: "STRING_VALUE", // required * KmsKeyArn: "STRING_VALUE", * }, * LogGroupNameConfiguration: { // LogGroupNameConfiguration * LogGroupNamePattern: "STRING_VALUE", // required * }, * TagPropagationConfiguration: { // TagPropagationConfiguration * DestinationRoleArn: "STRING_VALUE", // required * TagConflictResolutionStrategy: "IN_SYNC" || "ADD_ONLY" || "UPDATE_SYNC", * }, * }, * DestinationMetricsConfiguration: { // DestinationMetricsConfiguration * BackupConfiguration: { // MetricsBackupConfiguration * Region: "STRING_VALUE", // required * }, * }, * }, * }, * Tags: { // TagMapInput * "": "STRING_VALUE", * }, * }; * const command = new CreateCentralizationRuleForOrganizationCommand(input); * const response = await client.send(command); * // { // CreateCentralizationRuleForOrganizationOutput * // RuleArn: "STRING_VALUE", * // }; * * ``` * * @param CreateCentralizationRuleForOrganizationCommandInput - {@link CreateCentralizationRuleForOrganizationCommandInput} * @returns {@link CreateCentralizationRuleForOrganizationCommandOutput} * @see {@link CreateCentralizationRuleForOrganizationCommandInput} for command's `input` shape. * @see {@link CreateCentralizationRuleForOrganizationCommandOutput} for command's `response` shape. * @see {@link ObservabilityAdminClientResolvedConfig | config} for ObservabilityAdminClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

* * @throws {@link ConflictException} (client fault) *

The requested operation conflicts with the current state of the specified resource or with another request.

* * @throws {@link InternalServerException} (server fault) *

Indicates the request has failed to process because of an unknown server error, exception, or failure.

* * @throws {@link ServiceQuotaExceededException} (client fault) *

The requested operation would exceed the allowed quota for the specified resource type.

* * @throws {@link TooManyRequestsException} (client fault) *

The request throughput limit was exceeded.

* * @throws {@link ValidationException} (client fault) *

Indicates input validation failed. Check your request parameters and retry the request.

* * @throws {@link ObservabilityAdminServiceException} *

Base exception class for all service exceptions from ObservabilityAdmin service.

* * * @public */ export declare class CreateCentralizationRuleForOrganizationCommand extends CreateCentralizationRuleForOrganizationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateCentralizationRuleForOrganizationInput; output: CreateCentralizationRuleForOrganizationOutput; }; sdk: { input: CreateCentralizationRuleForOrganizationCommandInput; output: CreateCentralizationRuleForOrganizationCommandOutput; }; }; }