We recommend new projects start with resources from the AWS provider.
published on Monday, Jun 15, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Jun 15, 2026 by Pulumi
Creates a resilience policy that defines availability and disaster recovery requirements.
Create Policy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Policy(name: string, args?: PolicyArgs, opts?: CustomResourceOptions);@overload
def Policy(resource_name: str,
args: Optional[PolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Policy(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_slo: Optional[PolicyAvailabilitySloArgs] = None,
data_recovery: Optional[PolicyDataRecoveryTargetsArgs] = None,
description: Optional[str] = None,
kms_key_id: Optional[str] = None,
multi_az: Optional[PolicyMultiAzTargetsArgs] = None,
multi_region: Optional[PolicyMultiRegionTargetsArgs] = None,
name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewPolicy(ctx *Context, name string, args *PolicyArgs, opts ...ResourceOption) (*Policy, error)public Policy(string name, PolicyArgs? args = null, CustomResourceOptions? opts = null)
public Policy(String name, PolicyArgs args)
public Policy(String name, PolicyArgs args, CustomResourceOptions options)
type: aws-native:resiliencehubv2:Policy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_resiliencehubv2_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PolicyArgs
- 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 PolicyArgs
- 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 PolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Policy 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 Policy resource accepts the following input properties:
- Availability
Slo Pulumi.Aws Native. Resilience Hub V2. Inputs. Policy Availability Slo - Data
Recovery Pulumi.Aws Native. Resilience Hub V2. Inputs. Policy Data Recovery Targets - Description string
- The description of the policy.
- Kms
Key stringId - The KMS key ID for encrypting policy data.
- Multi
Az Pulumi.Aws Native. Resilience Hub V2. Inputs. Policy Multi Az Targets - Multi
Region Pulumi.Aws Native. Resilience Hub V2. Inputs. Policy Multi Region Targets - Name string
- The name of the policy.
-
List<Pulumi.
Aws Native. Inputs. Tag> - Tags assigned to the policy.
- Availability
Slo PolicyAvailability Slo Args - Data
Recovery PolicyData Recovery Targets Args - Description string
- The description of the policy.
- Kms
Key stringId - The KMS key ID for encrypting policy data.
- Multi
Az PolicyMulti Az Targets Args - Multi
Region PolicyMulti Region Targets Args - Name string
- The name of the policy.
-
Tag
Args - Tags assigned to the policy.
- availability_
slo object - data_
recovery object - description string
- The description of the policy.
- kms_
key_ stringid - The KMS key ID for encrypting policy data.
- multi_
az object - multi_
region object - name string
- The name of the policy.
- list(object)
- Tags assigned to the policy.
- availability
Slo PolicyAvailability Slo - data
Recovery PolicyData Recovery Targets - description String
- The description of the policy.
- kms
Key StringId - The KMS key ID for encrypting policy data.
- multi
Az PolicyMulti Az Targets - multi
Region PolicyMulti Region Targets - name String
- The name of the policy.
- List<Tag>
- Tags assigned to the policy.
- availability
Slo PolicyAvailability Slo - data
Recovery PolicyData Recovery Targets - description string
- The description of the policy.
- kms
Key stringId - The KMS key ID for encrypting policy data.
- multi
Az PolicyMulti Az Targets - multi
Region PolicyMulti Region Targets - name string
- The name of the policy.
- Tag[]
- Tags assigned to the policy.
- availability_
slo PolicyAvailability Slo Args - data_
recovery PolicyData Recovery Targets Args - description str
- The description of the policy.
- kms_
key_ strid - The KMS key ID for encrypting policy data.
- multi_
az PolicyMulti Az Targets Args - multi_
region PolicyMulti Region Targets Args - name str
- The name of the policy.
-
Sequence[Tag
Args] - Tags assigned to the policy.
- availability
Slo Property Map - data
Recovery Property Map - description String
- The description of the policy.
- kms
Key StringId - The KMS key ID for encrypting policy data.
- multi
Az Property Map - multi
Region Property Map - name String
- The name of the policy.
- List<Property Map>
- Tags assigned to the policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the Policy resource produces the following output properties:
- Associated
Service intCount - The number of services associated with this policy.
- Created
At string - The timestamp when the policy was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Arn string - The ARN of the policy.
- Updated
At string - The timestamp when the policy was last updated.
- Associated
Service intCount - The number of services associated with this policy.
- Created
At string - The timestamp when the policy was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Arn string - The ARN of the policy.
- Updated
At string - The timestamp when the policy was last updated.
- associated_
service_ numbercount - The number of services associated with this policy.
- created_
at string - The timestamp when the policy was created.
- id string
- The provider-assigned unique ID for this managed resource.
- policy_
arn string - The ARN of the policy.
- updated_
at string - The timestamp when the policy was last updated.
- associated
Service IntegerCount - The number of services associated with this policy.
- created
At String - The timestamp when the policy was created.
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Arn String - The ARN of the policy.
- updated
At String - The timestamp when the policy was last updated.
- associated
Service numberCount - The number of services associated with this policy.
- created
At string - The timestamp when the policy was created.
- id string
- The provider-assigned unique ID for this managed resource.
- policy
Arn string - The ARN of the policy.
- updated
At string - The timestamp when the policy was last updated.
- associated_
service_ intcount - The number of services associated with this policy.
- created_
at str - The timestamp when the policy was created.
- id str
- The provider-assigned unique ID for this managed resource.
- policy_
arn str - The ARN of the policy.
- updated_
at str - The timestamp when the policy was last updated.
- associated
Service NumberCount - The number of services associated with this policy.
- created
At String - The timestamp when the policy was created.
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Arn String - The ARN of the policy.
- updated
At String - The timestamp when the policy was last updated.
Supporting Types
PolicyAvailabilitySlo, PolicyAvailabilitySloArgs
- Target double
- Availability target percentage.
- Target float64
- Availability target percentage.
- target number
- Availability target percentage.
- target Double
- Availability target percentage.
- target number
- Availability target percentage.
- target float
- Availability target percentage.
- target Number
- Availability target percentage.
PolicyDataRecoveryTargets, PolicyDataRecoveryTargetsArgs
- Time
Between intBackups In Minutes - Time between backups in minutes.
- Time
Between intBackups In Minutes - Time between backups in minutes.
- time_
between_ numberbackups_ in_ minutes - Time between backups in minutes.
- time
Between IntegerBackups In Minutes - Time between backups in minutes.
- time
Between numberBackups In Minutes - Time between backups in minutes.
- time_
between_ intbackups_ in_ minutes - Time between backups in minutes.
- time
Between NumberBackups In Minutes - Time between backups in minutes.
PolicyMultiAzTargets, PolicyMultiAzTargetsArgs
- Disaster
Recovery Pulumi.Approach Aws Native. Resilience Hub V2. Policy Multi Az Targets Disaster Recovery Approach - Multi-AZ disaster recovery approach.
- Rpo
In intMinutes - Recovery Point Objective in minutes.
- Rto
In intMinutes - Recovery Time Objective in minutes.
- Disaster
Recovery PolicyApproach Multi Az Targets Disaster Recovery Approach - Multi-AZ disaster recovery approach.
- Rpo
In intMinutes - Recovery Point Objective in minutes.
- Rto
In intMinutes - Recovery Time Objective in minutes.
- disaster_
recovery_ "ACTIVE_ACTIVE" | "HOT_STANDBY" | "WARM_STANDBY" | "PILOT_LIGHT" | "BACKUP_AND_RESTORE"approach - Multi-AZ disaster recovery approach.
- rpo_
in_ numberminutes - Recovery Point Objective in minutes.
- rto_
in_ numberminutes - Recovery Time Objective in minutes.
- disaster
Recovery PolicyApproach Multi Az Targets Disaster Recovery Approach - Multi-AZ disaster recovery approach.
- rpo
In IntegerMinutes - Recovery Point Objective in minutes.
- rto
In IntegerMinutes - Recovery Time Objective in minutes.
- disaster
Recovery PolicyApproach Multi Az Targets Disaster Recovery Approach - Multi-AZ disaster recovery approach.
- rpo
In numberMinutes - Recovery Point Objective in minutes.
- rto
In numberMinutes - Recovery Time Objective in minutes.
- disaster_
recovery_ Policyapproach Multi Az Targets Disaster Recovery Approach - Multi-AZ disaster recovery approach.
- rpo_
in_ intminutes - Recovery Point Objective in minutes.
- rto_
in_ intminutes - Recovery Time Objective in minutes.
- disaster
Recovery "ACTIVE_ACTIVE" | "HOT_STANDBY" | "WARM_STANDBY" | "PILOT_LIGHT" | "BACKUP_AND_RESTORE"Approach - Multi-AZ disaster recovery approach.
- rpo
In NumberMinutes - Recovery Point Objective in minutes.
- rto
In NumberMinutes - Recovery Time Objective in minutes.
PolicyMultiAzTargetsDisasterRecoveryApproach, PolicyMultiAzTargetsDisasterRecoveryApproachArgs
- Active
Active ACTIVE_ACTIVE- Hot
Standby HOT_STANDBY- Warm
Standby WARM_STANDBY- Pilot
Light PILOT_LIGHT- Backup
And Restore BACKUP_AND_RESTORE
- Policy
Multi Az Targets Disaster Recovery Approach Active Active ACTIVE_ACTIVE- Policy
Multi Az Targets Disaster Recovery Approach Hot Standby HOT_STANDBY- Policy
Multi Az Targets Disaster Recovery Approach Warm Standby WARM_STANDBY- Policy
Multi Az Targets Disaster Recovery Approach Pilot Light PILOT_LIGHT- Policy
Multi Az Targets Disaster Recovery Approach Backup And Restore BACKUP_AND_RESTORE
- "ACTIVE_ACTIVE"
ACTIVE_ACTIVE- "HOT_STANDBY"
HOT_STANDBY- "WARM_STANDBY"
WARM_STANDBY- "PILOT_LIGHT"
PILOT_LIGHT- "BACKUP_AND_RESTORE"
BACKUP_AND_RESTORE
- Active
Active ACTIVE_ACTIVE- Hot
Standby HOT_STANDBY- Warm
Standby WARM_STANDBY- Pilot
Light PILOT_LIGHT- Backup
And Restore BACKUP_AND_RESTORE
- Active
Active ACTIVE_ACTIVE- Hot
Standby HOT_STANDBY- Warm
Standby WARM_STANDBY- Pilot
Light PILOT_LIGHT- Backup
And Restore BACKUP_AND_RESTORE
- ACTIVE_ACTIVE
ACTIVE_ACTIVE- HOT_STANDBY
HOT_STANDBY- WARM_STANDBY
WARM_STANDBY- PILOT_LIGHT
PILOT_LIGHT- BACKUP_AND_RESTORE
BACKUP_AND_RESTORE
- "ACTIVE_ACTIVE"
ACTIVE_ACTIVE- "HOT_STANDBY"
HOT_STANDBY- "WARM_STANDBY"
WARM_STANDBY- "PILOT_LIGHT"
PILOT_LIGHT- "BACKUP_AND_RESTORE"
BACKUP_AND_RESTORE
PolicyMultiRegionTargets, PolicyMultiRegionTargetsArgs
- Disaster
Recovery Pulumi.Approach Aws Native. Resilience Hub V2. Policy Multi Region Targets Disaster Recovery Approach - Multi-Region disaster recovery approach.
- Rpo
In intMinutes - Recovery Point Objective in minutes.
- Rto
In intMinutes - Recovery Time Objective in minutes.
- Disaster
Recovery PolicyApproach Multi Region Targets Disaster Recovery Approach - Multi-Region disaster recovery approach.
- Rpo
In intMinutes - Recovery Point Objective in minutes.
- Rto
In intMinutes - Recovery Time Objective in minutes.
- disaster_
recovery_ "ACTIVE_ACTIVE" | "HOT_STANDBY" | "WARM_STANDBY" | "PILOT_LIGHT" | "BACKUP_AND_RESTORE"approach - Multi-Region disaster recovery approach.
- rpo_
in_ numberminutes - Recovery Point Objective in minutes.
- rto_
in_ numberminutes - Recovery Time Objective in minutes.
- disaster
Recovery PolicyApproach Multi Region Targets Disaster Recovery Approach - Multi-Region disaster recovery approach.
- rpo
In IntegerMinutes - Recovery Point Objective in minutes.
- rto
In IntegerMinutes - Recovery Time Objective in minutes.
- disaster
Recovery PolicyApproach Multi Region Targets Disaster Recovery Approach - Multi-Region disaster recovery approach.
- rpo
In numberMinutes - Recovery Point Objective in minutes.
- rto
In numberMinutes - Recovery Time Objective in minutes.
- disaster_
recovery_ Policyapproach Multi Region Targets Disaster Recovery Approach - Multi-Region disaster recovery approach.
- rpo_
in_ intminutes - Recovery Point Objective in minutes.
- rto_
in_ intminutes - Recovery Time Objective in minutes.
- disaster
Recovery "ACTIVE_ACTIVE" | "HOT_STANDBY" | "WARM_STANDBY" | "PILOT_LIGHT" | "BACKUP_AND_RESTORE"Approach - Multi-Region disaster recovery approach.
- rpo
In NumberMinutes - Recovery Point Objective in minutes.
- rto
In NumberMinutes - Recovery Time Objective in minutes.
PolicyMultiRegionTargetsDisasterRecoveryApproach, PolicyMultiRegionTargetsDisasterRecoveryApproachArgs
- Active
Active ACTIVE_ACTIVE- Hot
Standby HOT_STANDBY- Warm
Standby WARM_STANDBY- Pilot
Light PILOT_LIGHT- Backup
And Restore BACKUP_AND_RESTORE
- Policy
Multi Region Targets Disaster Recovery Approach Active Active ACTIVE_ACTIVE- Policy
Multi Region Targets Disaster Recovery Approach Hot Standby HOT_STANDBY- Policy
Multi Region Targets Disaster Recovery Approach Warm Standby WARM_STANDBY- Policy
Multi Region Targets Disaster Recovery Approach Pilot Light PILOT_LIGHT- Policy
Multi Region Targets Disaster Recovery Approach Backup And Restore BACKUP_AND_RESTORE
- "ACTIVE_ACTIVE"
ACTIVE_ACTIVE- "HOT_STANDBY"
HOT_STANDBY- "WARM_STANDBY"
WARM_STANDBY- "PILOT_LIGHT"
PILOT_LIGHT- "BACKUP_AND_RESTORE"
BACKUP_AND_RESTORE
- Active
Active ACTIVE_ACTIVE- Hot
Standby HOT_STANDBY- Warm
Standby WARM_STANDBY- Pilot
Light PILOT_LIGHT- Backup
And Restore BACKUP_AND_RESTORE
- Active
Active ACTIVE_ACTIVE- Hot
Standby HOT_STANDBY- Warm
Standby WARM_STANDBY- Pilot
Light PILOT_LIGHT- Backup
And Restore BACKUP_AND_RESTORE
- ACTIVE_ACTIVE
ACTIVE_ACTIVE- HOT_STANDBY
HOT_STANDBY- WARM_STANDBY
WARM_STANDBY- PILOT_LIGHT
PILOT_LIGHT- BACKUP_AND_RESTORE
BACKUP_AND_RESTORE
- "ACTIVE_ACTIVE"
ACTIVE_ACTIVE- "HOT_STANDBY"
HOT_STANDBY- "WARM_STANDBY"
WARM_STANDBY- "PILOT_LIGHT"
PILOT_LIGHT- "BACKUP_AND_RESTORE"
BACKUP_AND_RESTORE
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Jun 15, 2026 by Pulumi