We recommend new projects start with resources from the AWS provider.
aws-native.backup.BackupSelection
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Backup::BackupSelection
Create BackupSelection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BackupSelection(name: string, args: BackupSelectionArgs, opts?: CustomResourceOptions);
@overload
def BackupSelection(resource_name: str,
args: BackupSelectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupSelection(resource_name: str,
opts: Optional[ResourceOptions] = None,
backup_plan_id: Optional[str] = None,
backup_selection: Optional[BackupSelectionResourceTypeArgs] = None)
func NewBackupSelection(ctx *Context, name string, args BackupSelectionArgs, opts ...ResourceOption) (*BackupSelection, error)
public BackupSelection(string name, BackupSelectionArgs args, CustomResourceOptions? opts = null)
public BackupSelection(String name, BackupSelectionArgs args)
public BackupSelection(String name, BackupSelectionArgs args, CustomResourceOptions options)
type: aws-native:backup:BackupSelection
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 BackupSelectionArgs
- 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 BackupSelectionArgs
- 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 BackupSelectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupSelectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupSelectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BackupSelection 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 BackupSelection resource accepts the following input properties:
- Backup
Plan stringId - Uniquely identifies a backup plan.
- Backup
Selection Pulumi.Value Aws Native. Backup. Inputs. Backup Selection Resource Type Specifies the body of a request to assign a set of resources to a backup plan.
It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
- Backup
Plan stringId - Uniquely identifies a backup plan.
- Backup
Selection BackupSelection Resource Type Args Specifies the body of a request to assign a set of resources to a backup plan.
It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
- backup
Plan StringId - Uniquely identifies a backup plan.
- backup
Selection BackupSelection Resource Type Specifies the body of a request to assign a set of resources to a backup plan.
It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
- backup
Plan stringId - Uniquely identifies a backup plan.
- backup
Selection BackupSelection Resource Type Specifies the body of a request to assign a set of resources to a backup plan.
It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
- backup_
plan_ strid - Uniquely identifies a backup plan.
- backup_
selection BackupSelection Resource Type Args Specifies the body of a request to assign a set of resources to a backup plan.
It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
- backup
Plan StringId - Uniquely identifies a backup plan.
- backup
Selection Property Map Specifies the body of a request to assign a set of resources to a backup plan.
It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupSelection resource produces the following output properties:
- Aws
Id string - Uniquely identifies the backup selection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Selection
Id string - Uniquely identifies a request to assign a set of resources to a backup plan.
- Aws
Id string - Uniquely identifies the backup selection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Selection
Id string - Uniquely identifies a request to assign a set of resources to a backup plan.
- aws
Id String - Uniquely identifies the backup selection.
- id String
- The provider-assigned unique ID for this managed resource.
- selection
Id String - Uniquely identifies a request to assign a set of resources to a backup plan.
- aws
Id string - Uniquely identifies the backup selection.
- id string
- The provider-assigned unique ID for this managed resource.
- selection
Id string - Uniquely identifies a request to assign a set of resources to a backup plan.
- aws_
id str - Uniquely identifies the backup selection.
- id str
- The provider-assigned unique ID for this managed resource.
- selection_
id str - Uniquely identifies a request to assign a set of resources to a backup plan.
- aws
Id String - Uniquely identifies the backup selection.
- id String
- The provider-assigned unique ID for this managed resource.
- selection
Id String - Uniquely identifies a request to assign a set of resources to a backup plan.
Supporting Types
BackupSelectionConditionParameter, BackupSelectionConditionParameterArgs
- Condition
Key string - The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key. - Condition
Value string - The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
- Condition
Key string - The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key. - Condition
Value string - The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
- condition
Key String - The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key. - condition
Value String - The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
- condition
Key string - The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key. - condition
Value string - The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
- condition_
key str - The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key. - condition_
value str - The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
- condition
Key String - The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key. - condition
Value String - The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
BackupSelectionConditionResourceType, BackupSelectionConditionResourceTypeArgs
- Condition
Key string - The key in a key-value pair. For example, in
"Department": "accounting"
,"Department"
is the key. - Condition
Type string - An operation, such as
STRINGEQUALS
, that is applied to a key-value pair used to filter resources in a selection. - Condition
Value string - The value in a key-value pair. For example, in
"Department": "accounting"
,"accounting"
is the value.
- Condition
Key string - The key in a key-value pair. For example, in
"Department": "accounting"
,"Department"
is the key. - Condition
Type string - An operation, such as
STRINGEQUALS
, that is applied to a key-value pair used to filter resources in a selection. - Condition
Value string - The value in a key-value pair. For example, in
"Department": "accounting"
,"accounting"
is the value.
- condition
Key String - The key in a key-value pair. For example, in
"Department": "accounting"
,"Department"
is the key. - condition
Type String - An operation, such as
STRINGEQUALS
, that is applied to a key-value pair used to filter resources in a selection. - condition
Value String - The value in a key-value pair. For example, in
"Department": "accounting"
,"accounting"
is the value.
- condition
Key string - The key in a key-value pair. For example, in
"Department": "accounting"
,"Department"
is the key. - condition
Type string - An operation, such as
STRINGEQUALS
, that is applied to a key-value pair used to filter resources in a selection. - condition
Value string - The value in a key-value pair. For example, in
"Department": "accounting"
,"accounting"
is the value.
- condition_
key str - The key in a key-value pair. For example, in
"Department": "accounting"
,"Department"
is the key. - condition_
type str - An operation, such as
STRINGEQUALS
, that is applied to a key-value pair used to filter resources in a selection. - condition_
value str - The value in a key-value pair. For example, in
"Department": "accounting"
,"accounting"
is the value.
- condition
Key String - The key in a key-value pair. For example, in
"Department": "accounting"
,"Department"
is the key. - condition
Type String - An operation, such as
STRINGEQUALS
, that is applied to a key-value pair used to filter resources in a selection. - condition
Value String - The value in a key-value pair. For example, in
"Department": "accounting"
,"accounting"
is the value.
BackupSelectionResourceType, BackupSelectionResourceTypeArgs
- Iam
Role stringArn - The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
. - Selection
Name string - The display name of a resource selection document.
- Conditions
Pulumi.
Aws Native. Backup. Inputs. Backup Selection Resource Type Conditions Properties A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.Conditions
differs fromListOfTags
as follows:- When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.ListOfTags
only supportsStringEquals
.
- List<Pulumi.
Aws Native. Backup. Inputs. Backup Selection Condition Resource Type> A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.ListOfTags
differs fromConditions
as follows:- When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supportsStringEquals
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.
- Not
Resources List<string> A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
- Resources List<string>
- An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
- Iam
Role stringArn - The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
. - Selection
Name string - The display name of a resource selection document.
- Conditions
Backup
Selection Resource Type Conditions Properties A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.Conditions
differs fromListOfTags
as follows:- When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.ListOfTags
only supportsStringEquals
.
- []Backup
Selection Condition Resource Type A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.ListOfTags
differs fromConditions
as follows:- When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supportsStringEquals
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.
- Not
Resources []string A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
- Resources []string
- An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
- iam
Role StringArn - The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
. - selection
Name String - The display name of a resource selection document.
- conditions
Backup
Selection Resource Type Conditions Properties A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.Conditions
differs fromListOfTags
as follows:- When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.ListOfTags
only supportsStringEquals
.
- List<Backup
Selection Condition Resource Type> A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.ListOfTags
differs fromConditions
as follows:- When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supportsStringEquals
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.
- not
Resources List<String> A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
- resources List<String>
- An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
- iam
Role stringArn - The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
. - selection
Name string - The display name of a resource selection document.
- conditions
Backup
Selection Resource Type Conditions Properties A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.Conditions
differs fromListOfTags
as follows:- When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.ListOfTags
only supportsStringEquals
.
- Backup
Selection Condition Resource Type[] A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.ListOfTags
differs fromConditions
as follows:- When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supportsStringEquals
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.
- not
Resources string[] A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
- resources string[]
- An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
- iam_
role_ strarn - The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
. - selection_
name str - The display name of a resource selection document.
- conditions
Backup
Selection Resource Type Conditions Properties A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.Conditions
differs fromListOfTags
as follows:- When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.ListOfTags
only supportsStringEquals
.
- Sequence[Backup
Selection Condition Resource Type] A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.ListOfTags
differs fromConditions
as follows:- When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supportsStringEquals
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.
- not_
resources Sequence[str] A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
- resources Sequence[str]
- An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
- iam
Role StringArn - The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
. - selection
Name String - The display name of a resource selection document.
- conditions Property Map
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.Conditions
differs fromListOfTags
as follows:- When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.ListOfTags
only supportsStringEquals
.
- List<Property Map>
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.ListOfTags
differs fromConditions
as follows:- When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supportsStringEquals
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.
- not
Resources List<String> A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
- resources List<String>
- An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
BackupSelectionResourceTypeConditionsProperties, BackupSelectionResourceTypeConditionsPropertiesArgs
- String
Equals List<Pulumi.Aws Native. Backup. Inputs. Backup Selection Condition Parameter> - String
Like List<Pulumi.Aws Native. Backup. Inputs. Backup Selection Condition Parameter> - String
Not List<Pulumi.Equals Aws Native. Backup. Inputs. Backup Selection Condition Parameter> - String
Not List<Pulumi.Like Aws Native. Backup. Inputs. Backup Selection Condition Parameter>
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.