RegionArgs

data class RegionArgs(val accountId: Output<String>? = null, val enabled: Output<Boolean>? = null, val regionName: Output<String>? = null) : ConvertibleToJava<RegionArgs>

Enable (Opt-In) or Disable (Opt-Out) a particular Region for an AWS account.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.account.Region("example", {
regionName: "ap-southeast-3",
enabled: true,
});
import pulumi
import pulumi_aws as aws
example = aws.account.Region("example",
region_name="ap-southeast-3",
enabled=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Account.Region("example", new()
{
RegionName = "ap-southeast-3",
Enabled = true,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/account"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := account.NewRegion(ctx, "example", &account.RegionArgs{
RegionName: pulumi.String("ap-southeast-3"),
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.account.Region;
import com.pulumi.aws.account.RegionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Region("example", RegionArgs.builder()
.regionName("ap-southeast-3")
.enabled(true)
.build());
}
}
resources:
example:
type: aws:account:Region
properties:
regionName: ap-southeast-3
enabled: true

Import

Using pulumi import. For example:

$ pulumi import aws:account/region:Region example ap-southeast-3

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, enabled: Output<Boolean>? = null, regionName: Output<String>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The ID of the target account when managing member accounts. Will manage current user's account by default if omitted. To use this parameter, the caller must be an identity in the organization's management account or a delegated administrator account. The specified account ID must also be a member account in the same organization. The organization must have all features enabled, and the organization must have trusted access enabled for the Account Management service, and optionally a delegated admin account assigned.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether the region is enabled.

Link copied to clipboard
val regionName: Output<String>? = null

The region name to manage.

Functions

Link copied to clipboard
open override fun toJava(): RegionArgs