AWS Classic

v5.16.0 published on Saturday, Sep 24, 2022 by Pulumi

RegionSettings

Provides an AWS Backup Region Settings resource.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var test = new Aws.Backup.RegionSettings("test", new()
    {
        ResourceTypeManagementPreference = 
        {
            { "DynamoDB", true },
            { "EFS", true },
        },
        ResourceTypeOptInPreference = 
        {
            { "Aurora", true },
            { "DocumentDB", true },
            { "DynamoDB", true },
            { "EBS", true },
            { "EC2", true },
            { "EFS", true },
            { "FSx", true },
            { "Neptune", true },
            { "RDS", true },
            { "Storage Gateway", true },
            { "VirtualMachine", true },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/backup"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := backup.NewRegionSettings(ctx, "test", &backup.RegionSettingsArgs{
			ResourceTypeManagementPreference: pulumi.BoolMap{
				"DynamoDB": pulumi.Bool(true),
				"EFS":      pulumi.Bool(true),
			},
			ResourceTypeOptInPreference: pulumi.BoolMap{
				"Aurora":          pulumi.Bool(true),
				"DocumentDB":      pulumi.Bool(true),
				"DynamoDB":        pulumi.Bool(true),
				"EBS":             pulumi.Bool(true),
				"EC2":             pulumi.Bool(true),
				"EFS":             pulumi.Bool(true),
				"FSx":             pulumi.Bool(true),
				"Neptune":         pulumi.Bool(true),
				"RDS":             pulumi.Bool(true),
				"Storage Gateway": pulumi.Bool(true),
				"VirtualMachine":  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.backup.RegionSettings;
import com.pulumi.aws.backup.RegionSettingsArgs;
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 test = new RegionSettings("test", RegionSettingsArgs.builder()        
            .resourceTypeManagementPreference(Map.ofEntries(
                Map.entry("DynamoDB", true),
                Map.entry("EFS", true)
            ))
            .resourceTypeOptInPreference(Map.ofEntries(
                Map.entry("Aurora", true),
                Map.entry("DocumentDB", true),
                Map.entry("DynamoDB", true),
                Map.entry("EBS", true),
                Map.entry("EC2", true),
                Map.entry("EFS", true),
                Map.entry("FSx", true),
                Map.entry("Neptune", true),
                Map.entry("RDS", true),
                Map.entry("Storage Gateway", true),
                Map.entry("VirtualMachine", true)
            ))
            .build());

    }
}
import pulumi
import pulumi_aws as aws

test = aws.backup.RegionSettings("test",
    resource_type_management_preference={
        "DynamoDB": True,
        "EFS": True,
    },
    resource_type_opt_in_preference={
        "Aurora": True,
        "DocumentDB": True,
        "DynamoDB": True,
        "EBS": True,
        "EC2": True,
        "EFS": True,
        "FSx": True,
        "Neptune": True,
        "RDS": True,
        "Storage Gateway": True,
        "VirtualMachine": True,
    })
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.backup.RegionSettings("test", {
    resourceTypeManagementPreference: {
        DynamoDB: true,
        EFS: true,
    },
    resourceTypeOptInPreference: {
        Aurora: true,
        DocumentDB: true,
        DynamoDB: true,
        EBS: true,
        EC2: true,
        EFS: true,
        FSx: true,
        Neptune: true,
        RDS: true,
        "Storage Gateway": true,
        VirtualMachine: true,
    },
});
resources:
  test:
    type: aws:backup:RegionSettings
    properties:
      resourceTypeManagementPreference:
        DynamoDB: true
        EFS: true
      resourceTypeOptInPreference:
        Aurora: true
        DocumentDB: true
        DynamoDB: true
        EBS: true
        EC2: true
        EFS: true
        FSx: true
        Neptune: true
        RDS: true
        Storage Gateway: true
        VirtualMachine: true

Create a RegionSettings Resource

new RegionSettings(name: string, args: RegionSettingsArgs, opts?: CustomResourceOptions);
@overload
def RegionSettings(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   resource_type_management_preference: Optional[Mapping[str, bool]] = None,
                   resource_type_opt_in_preference: Optional[Mapping[str, bool]] = None)
@overload
def RegionSettings(resource_name: str,
                   args: RegionSettingsArgs,
                   opts: Optional[ResourceOptions] = None)
func NewRegionSettings(ctx *Context, name string, args RegionSettingsArgs, opts ...ResourceOption) (*RegionSettings, error)
public RegionSettings(string name, RegionSettingsArgs args, CustomResourceOptions? opts = null)
public RegionSettings(String name, RegionSettingsArgs args)
public RegionSettings(String name, RegionSettingsArgs args, CustomResourceOptions options)
type: aws:backup:RegionSettings
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args RegionSettingsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args RegionSettingsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args RegionSettingsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args RegionSettingsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args RegionSettingsArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

RegionSettings Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The RegionSettings resource accepts the following input properties:

ResourceTypeOptInPreference Dictionary<string, bool>

A map of services along with the opt-in preferences for the Region.

ResourceTypeManagementPreference Dictionary<string, bool>

A map of services along with the management preferences for the Region.

ResourceTypeOptInPreference map[string]bool

A map of services along with the opt-in preferences for the Region.

ResourceTypeManagementPreference map[string]bool

A map of services along with the management preferences for the Region.

resourceTypeOptInPreference Map<String,Boolean>

A map of services along with the opt-in preferences for the Region.

resourceTypeManagementPreference Map<String,Boolean>

A map of services along with the management preferences for the Region.

resourceTypeOptInPreference {[key: string]: boolean}

A map of services along with the opt-in preferences for the Region.

resourceTypeManagementPreference {[key: string]: boolean}

A map of services along with the management preferences for the Region.

resource_type_opt_in_preference Mapping[str, bool]

A map of services along with the opt-in preferences for the Region.

resource_type_management_preference Mapping[str, bool]

A map of services along with the management preferences for the Region.

resourceTypeOptInPreference Map<Boolean>

A map of services along with the opt-in preferences for the Region.

resourceTypeManagementPreference Map<Boolean>

A map of services along with the management preferences for the Region.

Outputs

All input properties are implicitly available as output properties. Additionally, the RegionSettings resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing RegionSettings Resource

Get an existing RegionSettings resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RegionSettingsState, opts?: CustomResourceOptions): RegionSettings
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        resource_type_management_preference: Optional[Mapping[str, bool]] = None,
        resource_type_opt_in_preference: Optional[Mapping[str, bool]] = None) -> RegionSettings
func GetRegionSettings(ctx *Context, name string, id IDInput, state *RegionSettingsState, opts ...ResourceOption) (*RegionSettings, error)
public static RegionSettings Get(string name, Input<string> id, RegionSettingsState? state, CustomResourceOptions? opts = null)
public static RegionSettings get(String name, Output<String> id, RegionSettingsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ResourceTypeManagementPreference Dictionary<string, bool>

A map of services along with the management preferences for the Region.

ResourceTypeOptInPreference Dictionary<string, bool>

A map of services along with the opt-in preferences for the Region.

ResourceTypeManagementPreference map[string]bool

A map of services along with the management preferences for the Region.

ResourceTypeOptInPreference map[string]bool

A map of services along with the opt-in preferences for the Region.

resourceTypeManagementPreference Map<String,Boolean>

A map of services along with the management preferences for the Region.

resourceTypeOptInPreference Map<String,Boolean>

A map of services along with the opt-in preferences for the Region.

resourceTypeManagementPreference {[key: string]: boolean}

A map of services along with the management preferences for the Region.

resourceTypeOptInPreference {[key: string]: boolean}

A map of services along with the opt-in preferences for the Region.

resource_type_management_preference Mapping[str, bool]

A map of services along with the management preferences for the Region.

resource_type_opt_in_preference Mapping[str, bool]

A map of services along with the opt-in preferences for the Region.

resourceTypeManagementPreference Map<Boolean>

A map of services along with the management preferences for the Region.

resourceTypeOptInPreference Map<Boolean>

A map of services along with the opt-in preferences for the Region.

Import

Backup Region Settings can be imported using the region, e.g.,

 $ pulumi import aws:backup/regionSettings:RegionSettings test us-west-2

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.