import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing an AWS SSO Admin Region. * * Adds another AWS Region to an IAM Identity Center instance. This operation runs asynchronously, and Terraform waits until the Region status becomes `ACTIVE`. * * > For a given instance, only one Region add or remove operation can run at a time. If you manage multiple regions, apply them one at a time or use `dependsOn`. * * > The primary Region of an IAM Identity Center instance cannot be removed. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ssoadmin.getInstances({}); * const exampleRegion = new aws.ssoadmin.Region("example", { * instanceArn: example.then(example => example.arns?.[0]), * regionName: "us-east-1", * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `instanceArn` (String) ARN of the IAM Identity Center instance. * * `regionName` (String) Name of the AWS Region. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import this resource with `instanceArn` and `regionName` separated by a comma (`,`). For example: * * ```sh * $ pulumi import aws:ssoadmin/region:Region example arn:aws:sso:::instance/ssoins-1234567890abcdef,us-east-1 * ``` */ export declare class Region extends pulumi.CustomResource { /** * Get an existing Region 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?: RegionState, opts?: pulumi.CustomResourceOptions): Region; /** * Returns true if the given object is an instance of Region. 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 Region; /** * ARN of the IAM Identity Center instance. */ readonly instanceArn: pulumi.Output; /** * Region where Terraform calls the SSO Admin API for this resource. Defaults to the Region in the provider configuration. */ readonly region: pulumi.Output; /** * AWS Region to add (for example, `us-east-1`). Changing this forces a new resource. * * The following arguments are optional: */ readonly regionName: pulumi.Output; /** * Current Region status. Valid values are `ACTIVE`, `ADDING`, and `REMOVING`. */ readonly status: pulumi.Output; readonly timeouts: pulumi.Output; /** * Create a Region 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: RegionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Region resources. */ export interface RegionState { /** * ARN of the IAM Identity Center instance. */ instanceArn?: pulumi.Input; /** * Region where Terraform calls the SSO Admin API for this resource. Defaults to the Region in the provider configuration. */ region?: pulumi.Input; /** * AWS Region to add (for example, `us-east-1`). Changing this forces a new resource. * * The following arguments are optional: */ regionName?: pulumi.Input; /** * Current Region status. Valid values are `ACTIVE`, `ADDING`, and `REMOVING`. */ status?: pulumi.Input; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a Region resource. */ export interface RegionArgs { /** * ARN of the IAM Identity Center instance. */ instanceArn: pulumi.Input; /** * Region where Terraform calls the SSO Admin API for this resource. Defaults to the Region in the provider configuration. */ region?: pulumi.Input; /** * AWS Region to add (for example, `us-east-1`). Changing this forces a new resource. * * The following arguments are optional: */ regionName: pulumi.Input; timeouts?: pulumi.Input; } //# sourceMappingURL=region.d.ts.map