1. Packages
  2. AWS
  3. API Docs
  4. backup
  5. LogicallyAirGappedVault
AWS v6.75.0 published on Wednesday, Apr 2, 2025 by Pulumi

aws.backup.LogicallyAirGappedVault

Explore with Pulumi AI

Resource for managing an AWS Backup Logically Air Gapped Vault.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.backup.LogicallyAirGappedVault("example", {
    name: "lag-example-vault",
    maxRetentionDays: 7,
    minRetentionDays: 7,
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.backup.LogicallyAirGappedVault("example",
    name="lag-example-vault",
    max_retention_days=7,
    min_retention_days=7)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := backup.NewLogicallyAirGappedVault(ctx, "example", &backup.LogicallyAirGappedVaultArgs{
			Name:             pulumi.String("lag-example-vault"),
			MaxRetentionDays: pulumi.Int(7),
			MinRetentionDays: pulumi.Int(7),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Backup.LogicallyAirGappedVault("example", new()
    {
        Name = "lag-example-vault",
        MaxRetentionDays = 7,
        MinRetentionDays = 7,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.backup.LogicallyAirGappedVault;
import com.pulumi.aws.backup.LogicallyAirGappedVaultArgs;
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 LogicallyAirGappedVault("example", LogicallyAirGappedVaultArgs.builder()
            .name("lag-example-vault")
            .maxRetentionDays(7)
            .minRetentionDays(7)
            .build());

    }
}
Copy
resources:
  example:
    type: aws:backup:LogicallyAirGappedVault
    properties:
      name: lag-example-vault
      maxRetentionDays: 7
      minRetentionDays: 7
Copy

Create LogicallyAirGappedVault Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new LogicallyAirGappedVault(name: string, args: LogicallyAirGappedVaultArgs, opts?: CustomResourceOptions);
@overload
def LogicallyAirGappedVault(resource_name: str,
                            args: LogicallyAirGappedVaultArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def LogicallyAirGappedVault(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            max_retention_days: Optional[int] = None,
                            min_retention_days: Optional[int] = None,
                            name: Optional[str] = None,
                            tags: Optional[Mapping[str, str]] = None,
                            timeouts: Optional[LogicallyAirGappedVaultTimeoutsArgs] = None)
func NewLogicallyAirGappedVault(ctx *Context, name string, args LogicallyAirGappedVaultArgs, opts ...ResourceOption) (*LogicallyAirGappedVault, error)
public LogicallyAirGappedVault(string name, LogicallyAirGappedVaultArgs args, CustomResourceOptions? opts = null)
public LogicallyAirGappedVault(String name, LogicallyAirGappedVaultArgs args)
public LogicallyAirGappedVault(String name, LogicallyAirGappedVaultArgs args, CustomResourceOptions options)
type: aws:backup:LogicallyAirGappedVault
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

Constructor example

The following reference example uses placeholder values for all input properties.

var logicallyAirGappedVaultResource = new Aws.Backup.LogicallyAirGappedVault("logicallyAirGappedVaultResource", new()
{
    MaxRetentionDays = 0,
    MinRetentionDays = 0,
    Name = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Timeouts = new Aws.Backup.Inputs.LogicallyAirGappedVaultTimeoutsArgs
    {
        Create = "string",
    },
});
Copy
example, err := backup.NewLogicallyAirGappedVault(ctx, "logicallyAirGappedVaultResource", &backup.LogicallyAirGappedVaultArgs{
	MaxRetentionDays: pulumi.Int(0),
	MinRetentionDays: pulumi.Int(0),
	Name:             pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Timeouts: &backup.LogicallyAirGappedVaultTimeoutsArgs{
		Create: pulumi.String("string"),
	},
})
Copy
var logicallyAirGappedVaultResource = new LogicallyAirGappedVault("logicallyAirGappedVaultResource", LogicallyAirGappedVaultArgs.builder()
    .maxRetentionDays(0)
    .minRetentionDays(0)
    .name("string")
    .tags(Map.of("string", "string"))
    .timeouts(LogicallyAirGappedVaultTimeoutsArgs.builder()
        .create("string")
        .build())
    .build());
Copy
logically_air_gapped_vault_resource = aws.backup.LogicallyAirGappedVault("logicallyAirGappedVaultResource",
    max_retention_days=0,
    min_retention_days=0,
    name="string",
    tags={
        "string": "string",
    },
    timeouts={
        "create": "string",
    })
Copy
const logicallyAirGappedVaultResource = new aws.backup.LogicallyAirGappedVault("logicallyAirGappedVaultResource", {
    maxRetentionDays: 0,
    minRetentionDays: 0,
    name: "string",
    tags: {
        string: "string",
    },
    timeouts: {
        create: "string",
    },
});
Copy
type: aws:backup:LogicallyAirGappedVault
properties:
    maxRetentionDays: 0
    minRetentionDays: 0
    name: string
    tags:
        string: string
    timeouts:
        create: string
Copy

LogicallyAirGappedVault Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The LogicallyAirGappedVault resource accepts the following input properties:

MaxRetentionDays This property is required. int
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
MinRetentionDays This property is required. int
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
Name string
Name of the Logically Air Gapped Backup Vault to create.
Tags Dictionary<string, string>
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Timeouts LogicallyAirGappedVaultTimeouts
MaxRetentionDays This property is required. int
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
MinRetentionDays This property is required. int
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
Name string
Name of the Logically Air Gapped Backup Vault to create.
Tags map[string]string
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Timeouts LogicallyAirGappedVaultTimeoutsArgs
maxRetentionDays This property is required. Integer
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
minRetentionDays This property is required. Integer
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
name String
Name of the Logically Air Gapped Backup Vault to create.
tags Map<String,String>
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
timeouts LogicallyAirGappedVaultTimeouts
maxRetentionDays This property is required. number
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
minRetentionDays This property is required. number
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
name string
Name of the Logically Air Gapped Backup Vault to create.
tags {[key: string]: string}
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
timeouts LogicallyAirGappedVaultTimeouts
max_retention_days This property is required. int
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
min_retention_days This property is required. int
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
name str
Name of the Logically Air Gapped Backup Vault to create.
tags Mapping[str, str]
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
timeouts LogicallyAirGappedVaultTimeoutsArgs
maxRetentionDays This property is required. Number
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
minRetentionDays This property is required. Number
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
name String
Name of the Logically Air Gapped Backup Vault to create.
tags Map<String>
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
timeouts Property Map

Outputs

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

Arn string
The ARN of the Logically Air Gapped Backup Vault.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

Arn string
The ARN of the Logically Air Gapped Backup Vault.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn String
The ARN of the Logically Air Gapped Backup Vault.
id String
The provider-assigned unique ID for this managed resource.
tagsAll Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn string
The ARN of the Logically Air Gapped Backup Vault.
id string
The provider-assigned unique ID for this managed resource.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn str
The ARN of the Logically Air Gapped Backup Vault.
id str
The provider-assigned unique ID for this managed resource.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn String
The ARN of the Logically Air Gapped Backup Vault.
id String
The provider-assigned unique ID for this managed resource.
tagsAll Map<String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

Look up Existing LogicallyAirGappedVault Resource

Get an existing LogicallyAirGappedVault 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?: LogicallyAirGappedVaultState, opts?: CustomResourceOptions): LogicallyAirGappedVault
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        max_retention_days: Optional[int] = None,
        min_retention_days: Optional[int] = None,
        name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        timeouts: Optional[LogicallyAirGappedVaultTimeoutsArgs] = None) -> LogicallyAirGappedVault
func GetLogicallyAirGappedVault(ctx *Context, name string, id IDInput, state *LogicallyAirGappedVaultState, opts ...ResourceOption) (*LogicallyAirGappedVault, error)
public static LogicallyAirGappedVault Get(string name, Input<string> id, LogicallyAirGappedVaultState? state, CustomResourceOptions? opts = null)
public static LogicallyAirGappedVault get(String name, Output<String> id, LogicallyAirGappedVaultState state, CustomResourceOptions options)
resources:  _:    type: aws:backup:LogicallyAirGappedVault    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Arn string
The ARN of the Logically Air Gapped Backup Vault.
MaxRetentionDays int
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
MinRetentionDays int
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
Name string
Name of the Logically Air Gapped Backup Vault to create.
Tags Dictionary<string, string>
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

Timeouts LogicallyAirGappedVaultTimeouts
Arn string
The ARN of the Logically Air Gapped Backup Vault.
MaxRetentionDays int
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
MinRetentionDays int
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
Name string
Name of the Logically Air Gapped Backup Vault to create.
Tags map[string]string
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

Timeouts LogicallyAirGappedVaultTimeoutsArgs
arn String
The ARN of the Logically Air Gapped Backup Vault.
maxRetentionDays Integer
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
minRetentionDays Integer
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
name String
Name of the Logically Air Gapped Backup Vault to create.
tags Map<String,String>
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

timeouts LogicallyAirGappedVaultTimeouts
arn string
The ARN of the Logically Air Gapped Backup Vault.
maxRetentionDays number
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
minRetentionDays number
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
name string
Name of the Logically Air Gapped Backup Vault to create.
tags {[key: string]: string}
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

timeouts LogicallyAirGappedVaultTimeouts
arn str
The ARN of the Logically Air Gapped Backup Vault.
max_retention_days int
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
min_retention_days int
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
name str
Name of the Logically Air Gapped Backup Vault to create.
tags Mapping[str, str]
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

timeouts LogicallyAirGappedVaultTimeoutsArgs
arn String
The ARN of the Logically Air Gapped Backup Vault.
maxRetentionDays Number
Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
minRetentionDays Number
Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
name String
Name of the Logically Air Gapped Backup Vault to create.
tags Map<String>
Metadata that you can assign to help organize the resources that you create. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map<String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

timeouts Property Map

Supporting Types

LogicallyAirGappedVaultTimeouts
, LogicallyAirGappedVaultTimeoutsArgs

Create string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Create string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
create String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
create string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
create str
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
create String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

Import

Using pulumi import, import Backup Logically Air Gapped Vault using the id. For example:

$ pulumi import aws:backup/logicallyAirGappedVault:LogicallyAirGappedVault example lag-example-vault
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.