@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
210 lines (209 loc) • 9.23 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a Config Organization Managed Rule. More information about these rules can be found in the [Enabling AWS Config Rules Across all Accounts in Your Organization](https://docs.aws.amazon.com/config/latest/developerguide/config-rule-multi-account-deployment.html) and [AWS Config Managed Rules](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html) documentation. For working with Organization Custom Rules (those invoking a custom Lambda Function), see the `aws.cfg.OrganizationCustomRule` resource.
*
* > **NOTE:** This resource must be created in the Organization master account and rules will include the master account unless its ID is added to the `excludedAccounts` argument.
*
* > **NOTE:** Every Organization account except those configured in the `excludedAccounts` argument must have a Configuration Recorder with proper IAM permissions before the rule will successfully create or update. See also the `aws.cfg.Recorder` resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = new aws.organizations.Organization("example", {
* awsServiceAccessPrincipals: ["config-multiaccountsetup.amazonaws.com"],
* featureSet: "ALL",
* });
* const exampleOrganizationManagedRule = new aws.cfg.OrganizationManagedRule("example", {
* name: "example",
* ruleIdentifier: "IAM_PASSWORD_POLICY",
* }, {
* dependsOn: [example],
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import Config Organization Managed Rules using the name. For example:
*
* ```sh
* $ pulumi import aws:cfg/organizationManagedRule:OrganizationManagedRule example example
* ```
*/
export declare class OrganizationManagedRule extends pulumi.CustomResource {
/**
* Get an existing OrganizationManagedRule 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<pulumi.ID>, state?: OrganizationManagedRuleState, opts?: pulumi.CustomResourceOptions): OrganizationManagedRule;
/**
* Returns true if the given object is an instance of OrganizationManagedRule. 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 OrganizationManagedRule;
/**
* Amazon Resource Name (ARN) of the rule
*/
readonly arn: pulumi.Output<string>;
/**
* Description of the rule
*/
readonly description: pulumi.Output<string | undefined>;
/**
* List of AWS account identifiers to exclude from the rule
*/
readonly excludedAccounts: pulumi.Output<string[] | undefined>;
/**
* A string in JSON format that is passed to the AWS Config Rule Lambda Function
*/
readonly inputParameters: pulumi.Output<string | undefined>;
/**
* The maximum frequency with which AWS Config runs evaluations for a rule, if the rule is triggered at a periodic frequency. Defaults to `TwentyFour_Hours` for periodic frequency triggered rules. Valid values: `One_Hour`, `Three_Hours`, `Six_Hours`, `Twelve_Hours`, or `TwentyFour_Hours`.
*/
readonly maximumExecutionFrequency: pulumi.Output<string | undefined>;
/**
* The name of the rule
*/
readonly name: pulumi.Output<string>;
/**
* 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<string>;
/**
* Identifier of the AWS resource to evaluate
*/
readonly resourceIdScope: pulumi.Output<string | undefined>;
/**
* List of types of AWS resources to evaluate
*/
readonly resourceTypesScopes: pulumi.Output<string[] | undefined>;
/**
* Identifier of an available AWS Config Managed Rule to call. For available values, see the [List of AWS Config Managed Rules](https://docs.aws.amazon.com/config/latest/developerguide/managed-rules-by-aws-config.html) documentation
*/
readonly ruleIdentifier: pulumi.Output<string>;
/**
* Tag key of AWS resources to evaluate
*/
readonly tagKeyScope: pulumi.Output<string | undefined>;
/**
* Tag value of AWS resources to evaluate
*/
readonly tagValueScope: pulumi.Output<string | undefined>;
/**
* Create a OrganizationManagedRule 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: OrganizationManagedRuleArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering OrganizationManagedRule resources.
*/
export interface OrganizationManagedRuleState {
/**
* Amazon Resource Name (ARN) of the rule
*/
arn?: pulumi.Input<string>;
/**
* Description of the rule
*/
description?: pulumi.Input<string>;
/**
* List of AWS account identifiers to exclude from the rule
*/
excludedAccounts?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A string in JSON format that is passed to the AWS Config Rule Lambda Function
*/
inputParameters?: pulumi.Input<string>;
/**
* The maximum frequency with which AWS Config runs evaluations for a rule, if the rule is triggered at a periodic frequency. Defaults to `TwentyFour_Hours` for periodic frequency triggered rules. Valid values: `One_Hour`, `Three_Hours`, `Six_Hours`, `Twelve_Hours`, or `TwentyFour_Hours`.
*/
maximumExecutionFrequency?: pulumi.Input<string>;
/**
* The name of the rule
*/
name?: pulumi.Input<string>;
/**
* 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<string>;
/**
* Identifier of the AWS resource to evaluate
*/
resourceIdScope?: pulumi.Input<string>;
/**
* List of types of AWS resources to evaluate
*/
resourceTypesScopes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Identifier of an available AWS Config Managed Rule to call. For available values, see the [List of AWS Config Managed Rules](https://docs.aws.amazon.com/config/latest/developerguide/managed-rules-by-aws-config.html) documentation
*/
ruleIdentifier?: pulumi.Input<string>;
/**
* Tag key of AWS resources to evaluate
*/
tagKeyScope?: pulumi.Input<string>;
/**
* Tag value of AWS resources to evaluate
*/
tagValueScope?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a OrganizationManagedRule resource.
*/
export interface OrganizationManagedRuleArgs {
/**
* Description of the rule
*/
description?: pulumi.Input<string>;
/**
* List of AWS account identifiers to exclude from the rule
*/
excludedAccounts?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A string in JSON format that is passed to the AWS Config Rule Lambda Function
*/
inputParameters?: pulumi.Input<string>;
/**
* The maximum frequency with which AWS Config runs evaluations for a rule, if the rule is triggered at a periodic frequency. Defaults to `TwentyFour_Hours` for periodic frequency triggered rules. Valid values: `One_Hour`, `Three_Hours`, `Six_Hours`, `Twelve_Hours`, or `TwentyFour_Hours`.
*/
maximumExecutionFrequency?: pulumi.Input<string>;
/**
* The name of the rule
*/
name?: pulumi.Input<string>;
/**
* 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<string>;
/**
* Identifier of the AWS resource to evaluate
*/
resourceIdScope?: pulumi.Input<string>;
/**
* List of types of AWS resources to evaluate
*/
resourceTypesScopes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Identifier of an available AWS Config Managed Rule to call. For available values, see the [List of AWS Config Managed Rules](https://docs.aws.amazon.com/config/latest/developerguide/managed-rules-by-aws-config.html) documentation
*/
ruleIdentifier: pulumi.Input<string>;
/**
* Tag key of AWS resources to evaluate
*/
tagKeyScope?: pulumi.Input<string>;
/**
* Tag value of AWS resources to evaluate
*/
tagValueScope?: pulumi.Input<string>;
}