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,
});
import pulumi
import pulumi_aws as aws
example = aws.backup.LogicallyAirGappedVault("example",
name="lag-example-vault",
max_retention_days=7,
min_retention_days=7)
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
})
}
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,
});
});
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());
}
}
resources:
example:
type: aws:backup:LogicallyAirGappedVault
properties:
name: lag-example-vault
maxRetentionDays: 7
minRetentionDays: 7
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 string
- The unique name of the resource.
- args LogicallyAirGappedVaultArgs
- 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 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 string
- The unique name of the resource.
- args LogicallyAirGappedVaultArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogicallyAirGappedVaultArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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"),
},
})
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());
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",
})
const logicallyAirGappedVaultResource = new aws.backup.LogicallyAirGappedVault("logicallyAirGappedVaultResource", {
maxRetentionDays: 0,
minRetentionDays: 0,
name: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
},
});
type: aws:backup:LogicallyAirGappedVault
properties:
maxRetentionDays: 0
minRetentionDays: 0
name: string
tags:
string: string
timeouts:
create: string
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:
- Max
Retention intDays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- Min
Retention intDays - 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.
- 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
Logically
Air Gapped Vault Timeouts
- Max
Retention intDays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- Min
Retention intDays - 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.
- 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
Logically
Air Gapped Vault Timeouts Args
- max
Retention IntegerDays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- min
Retention IntegerDays - 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.
- 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
Logically
Air Gapped Vault Timeouts
- max
Retention numberDays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- min
Retention numberDays - 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.
- {[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
Logically
Air Gapped Vault Timeouts
- max_
retention_ intdays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- min_
retention_ intdays - 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.
- 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
Logically
Air Gapped Vault Timeouts Args
- max
Retention NumberDays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- min
Retention NumberDays - 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.
- 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:
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)
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.
- Arn string
- The ARN of the Logically Air Gapped Backup Vault.
- Max
Retention intDays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- Min
Retention intDays - 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.
- 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Timeouts
Logically
Air Gapped Vault Timeouts
- Arn string
- The ARN of the Logically Air Gapped Backup Vault.
- Max
Retention intDays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- Min
Retention intDays - 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.
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Timeouts
Logically
Air Gapped Vault Timeouts Args
- arn String
- The ARN of the Logically Air Gapped Backup Vault.
- max
Retention IntegerDays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- min
Retention IntegerDays - 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.
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - timeouts
Logically
Air Gapped Vault Timeouts
- arn string
- The ARN of the Logically Air Gapped Backup Vault.
- max
Retention numberDays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- min
Retention numberDays - 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.
- {[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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - timeouts
Logically
Air Gapped Vault Timeouts
- arn str
- The ARN of the Logically Air Gapped Backup Vault.
- max_
retention_ intdays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- min_
retention_ intdays - 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.
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - timeouts
Logically
Air Gapped Vault Timeouts Args
- arn String
- The ARN of the Logically Air Gapped Backup Vault.
- max
Retention NumberDays - Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
- min
Retention NumberDays - 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.
- 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - 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
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.