UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

131 lines (130 loc) 6.1 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides an AWS Backup Region Settings resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = new aws.backup.RegionSettings("test", { * resourceTypeOptInPreference: { * Aurora: true, * CloudFormation: true, * DocumentDB: true, * DSQL: true, * DynamoDB: true, * EBS: true, * EC2: true, * EFS: true, * FSx: true, * Neptune: true, * Redshift: true, * "Redshift Serverless": false, * RDS: false, * S3: false, * "SAP HANA on Amazon EC2": false, * "Storage Gateway": false, * VirtualMachine: false, * }, * resourceTypeManagementPreference: { * CloudFormation: true, * DSQL: true, * DynamoDB: false, * EFS: false, * }, * }); * ``` * * ## Import * * Using `pulumi import`, import Backup Region Settings using the `region`. For example: * * ```sh * $ pulumi import aws:backup/regionSettings:RegionSettings test us-west-2 * ``` */ export declare class RegionSettings extends pulumi.CustomResource { /** * Get an existing RegionSettings 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?: RegionSettingsState, opts?: pulumi.CustomResourceOptions): RegionSettings; /** * Returns true if the given object is an instance of RegionSettings. 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 RegionSettings; /** * 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>; /** * A map of service names to their full management preferences for the Region. For more information, see the AWS Documentation on [what full management is](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#full-management) and [which services support full management](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource). */ readonly resourceTypeManagementPreference: pulumi.Output<{ [key: string]: boolean; }>; /** * A map of service names to their opt-in preferences for the Region. See [AWS Documentation on which services support backup](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html). */ readonly resourceTypeOptInPreference: pulumi.Output<{ [key: string]: boolean; }>; /** * Create a RegionSettings 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: RegionSettingsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RegionSettings resources. */ export interface RegionSettingsState { /** * 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>; /** * A map of service names to their full management preferences for the Region. For more information, see the AWS Documentation on [what full management is](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#full-management) and [which services support full management](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource). */ resourceTypeManagementPreference?: pulumi.Input<{ [key: string]: pulumi.Input<boolean>; }>; /** * A map of service names to their opt-in preferences for the Region. See [AWS Documentation on which services support backup](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html). */ resourceTypeOptInPreference?: pulumi.Input<{ [key: string]: pulumi.Input<boolean>; }>; } /** * The set of arguments for constructing a RegionSettings resource. */ export interface RegionSettingsArgs { /** * 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>; /** * A map of service names to their full management preferences for the Region. For more information, see the AWS Documentation on [what full management is](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#full-management) and [which services support full management](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource). */ resourceTypeManagementPreference?: pulumi.Input<{ [key: string]: pulumi.Input<boolean>; }>; /** * A map of service names to their opt-in preferences for the Region. See [AWS Documentation on which services support backup](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html). */ resourceTypeOptInPreference: pulumi.Input<{ [key: string]: pulumi.Input<boolean>; }>; }