import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS CloudWatch Observability Admin Telemetry Evaluation For Organization. * * Telemetry evaluation for organization begins onboarding the organization and all member accounts to the telemetry config feature, enabling CloudWatch to evaluate and discover the state of telemetry configuration for AWS resources across the organization. * * For more information, see the [AWS CloudWatch Observability Admin documentation](https://docs.aws.amazon.com/cloudwatch/latest/observabilityadmin/what-is-observabilityadmin.html). * * > **NOTE:** This resource can only be used from the management account or a delegated admin account of an AWS Organization. Only one telemetry evaluation for organization can exist per organization. Creating this resource enables the feature; destroying it disables the feature. * * ## Example Usage * * ### Basic Usage (Current Region Only) * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.observabilityadmin.TelemetryEvaluationForOrganization("example", {}); * ``` * * ### All Regions * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.observabilityadmin.TelemetryEvaluationForOrganization("example", {allRegions: true}); * ``` * * ### Specific Regions * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.observabilityadmin.TelemetryEvaluationForOrganization("example", {regions: [ * "us-east-1", * "eu-west-1", * ]}); * ``` * * ## Import * * ### Identity Schema * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import CloudWatch Observability Admin Telemetry Evaluation For Organization using the region name. For example: * * ```sh * $ pulumi import aws:observabilityadmin/telemetryEvaluationForOrganization:TelemetryEvaluationForOrganization example us-west-2 * ``` */ export declare class TelemetryEvaluationForOrganization extends pulumi.CustomResource { /** * Get an existing TelemetryEvaluationForOrganization resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: TelemetryEvaluationForOrganizationState, opts?: pulumi.CustomResourceOptions): TelemetryEvaluationForOrganization; /** * Returns true if the given object is an instance of TelemetryEvaluationForOrganization. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is TelemetryEvaluationForOrganization; /** * Whether to start telemetry evaluation in all AWS Regions where CloudWatch Observability Admin is available. The current region becomes the home region. Mutually exclusive with `regions`. */ readonly allRegions: pulumi.Output; /** * Reason for the failure status. Only populated if `status` is `FAILED_START` or `FAILED_STOP`. */ readonly failureReason: pulumi.Output; /** * AWS Region designated as the home region for multi-region telemetry evaluation. Only present when multi-region evaluation is active. */ readonly homeRegion: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * List of AWS Regions to include in multi-region telemetry evaluation. The current region is always implicitly included. Mutually exclusive with `allRegions`. */ readonly regions: pulumi.Output; /** * Onboarding status of the telemetry config feature for the organization. Valid values: `NOT_STARTED`, `STARTING`, `FAILED_START`, `RUNNING`, `STOPPING`, `FAILED_STOP`, `STOPPED`. */ readonly status: pulumi.Output; readonly timeouts: pulumi.Output; /** * Create a TelemetryEvaluationForOrganization resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: TelemetryEvaluationForOrganizationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TelemetryEvaluationForOrganization resources. */ export interface TelemetryEvaluationForOrganizationState { /** * Whether to start telemetry evaluation in all AWS Regions where CloudWatch Observability Admin is available. The current region becomes the home region. Mutually exclusive with `regions`. */ allRegions?: pulumi.Input; /** * Reason for the failure status. Only populated if `status` is `FAILED_START` or `FAILED_STOP`. */ failureReason?: pulumi.Input; /** * AWS Region designated as the home region for multi-region telemetry evaluation. Only present when multi-region evaluation is active. */ homeRegion?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * List of AWS Regions to include in multi-region telemetry evaluation. The current region is always implicitly included. Mutually exclusive with `allRegions`. */ regions?: pulumi.Input[] | undefined>; /** * Onboarding status of the telemetry config feature for the organization. Valid values: `NOT_STARTED`, `STARTING`, `FAILED_START`, `RUNNING`, `STOPPING`, `FAILED_STOP`, `STOPPED`. */ status?: pulumi.Input; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a TelemetryEvaluationForOrganization resource. */ export interface TelemetryEvaluationForOrganizationArgs { /** * Whether to start telemetry evaluation in all AWS Regions where CloudWatch Observability Admin is available. The current region becomes the home region. Mutually exclusive with `regions`. */ allRegions?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * List of AWS Regions to include in multi-region telemetry evaluation. The current region is always implicitly included. Mutually exclusive with `allRegions`. */ regions?: pulumi.Input[] | undefined>; timeouts?: pulumi.Input; } //# sourceMappingURL=telemetryEvaluationForOrganization.d.ts.map