We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 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,
sharing_enabled: Optional[bool] = 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.
- bool
- Whether the policy is enabled to be shared with other members of the Organization. Only applicable if the policy owner is a management account or delegated admin.
-
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.
- bool
- Whether the policy is enabled to be shared with other members of the Organization. Only applicable if the policy owner is a management account or delegated admin.
-
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.
- bool
- Whether the policy is enabled to be shared with other members of the Organization. Only applicable if the policy owner is a management account or delegated admin.
- 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.
- Boolean
- Whether the policy is enabled to be shared with other members of the Organization. Only applicable if the policy owner is a management account or delegated admin.
- 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.
- boolean
- Whether the policy is enabled to be shared with other members of the Organization. Only applicable if the policy owner is a management account or delegated admin.
- 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.
- bool
- Whether the policy is enabled to be shared with other members of the Organization. Only applicable if the policy owner is a management account or delegated admin.
-
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.
- Boolean
- Whether the policy is enabled to be shared with other members of the Organization. Only applicable if the policy owner is a management account or delegated admin.
- 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.
Look up Existing Policy Resource
Get an existing Policy 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>, opts?: CustomResourceOptions): Policy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Policyfunc GetPolicy(ctx *Context, name string, id IDInput, state *PolicyState, opts ...ResourceOption) (*Policy, error)public static Policy Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Policy get(String name, Output<String> id, CustomResourceOptions options)resources: existingPolicy: type: aws-native:resiliencehubv2:Policy get: id: ${id}import {
to = aws-native_resiliencehubv2_policy.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state PolicyState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
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
Multi-AZ disaster recovery approach.
| Name | Value |
|---|---|
| Active | ACTIVE_ACTIVE |
| Hot | HOT_STANDBY |
| Warm | WARM_STANDBY |
| Pilot | PILOT_LIGHT |
| Backup | BACKUP_AND_RESTORE |
| Name | Value |
|---|---|
| Policy | ACTIVE_ACTIVE |
| Policy | HOT_STANDBY |
| Policy | WARM_STANDBY |
| Policy | PILOT_LIGHT |
| Policy | BACKUP_AND_RESTORE |
| Value |
|---|
ACTIVE_ACTIVE |
HOT_STANDBY |
WARM_STANDBY |
PILOT_LIGHT |
BACKUP_AND_RESTORE |
| Name | Value |
|---|---|
| Active | ACTIVE_ACTIVE |
| Hot | HOT_STANDBY |
| Warm | WARM_STANDBY |
| Pilot | PILOT_LIGHT |
| Backup | BACKUP_AND_RESTORE |
| Name | Value |
|---|---|
| Active | ACTIVE_ACTIVE |
| Hot | HOT_STANDBY |
| Warm | WARM_STANDBY |
| Pilot | PILOT_LIGHT |
| Backup | BACKUP_AND_RESTORE |
| Name | Value |
|---|---|
| ACTIVE_ACTIVE | ACTIVE_ACTIVE |
| HOT_STANDBY | HOT_STANDBY |
| WARM_STANDBY | WARM_STANDBY |
| PILOT_LIGHT | PILOT_LIGHT |
| BACKUP_AND_RESTORE | BACKUP_AND_RESTORE |
| Value |
|---|
ACTIVE_ACTIVE |
HOT_STANDBY |
WARM_STANDBY |
PILOT_LIGHT |
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
Multi-Region disaster recovery approach.
| Name | Value |
|---|---|
| Active | ACTIVE_ACTIVE |
| Hot | HOT_STANDBY |
| Warm | WARM_STANDBY |
| Pilot | PILOT_LIGHT |
| Backup | BACKUP_AND_RESTORE |
| Name | Value |
|---|---|
| Policy | ACTIVE_ACTIVE |
| Policy | HOT_STANDBY |
| Policy | WARM_STANDBY |
| Policy | PILOT_LIGHT |
| Policy | BACKUP_AND_RESTORE |
| Value |
|---|
ACTIVE_ACTIVE |
HOT_STANDBY |
WARM_STANDBY |
PILOT_LIGHT |
BACKUP_AND_RESTORE |
| Name | Value |
|---|---|
| Active | ACTIVE_ACTIVE |
| Hot | HOT_STANDBY |
| Warm | WARM_STANDBY |
| Pilot | PILOT_LIGHT |
| Backup | BACKUP_AND_RESTORE |
| Name | Value |
|---|---|
| Active | ACTIVE_ACTIVE |
| Hot | HOT_STANDBY |
| Warm | WARM_STANDBY |
| Pilot | PILOT_LIGHT |
| Backup | BACKUP_AND_RESTORE |
| Name | Value |
|---|---|
| ACTIVE_ACTIVE | ACTIVE_ACTIVE |
| HOT_STANDBY | HOT_STANDBY |
| WARM_STANDBY | WARM_STANDBY |
| PILOT_LIGHT | PILOT_LIGHT |
| BACKUP_AND_RESTORE | BACKUP_AND_RESTORE |
| Value |
|---|
ACTIVE_ACTIVE |
HOT_STANDBY |
WARM_STANDBY |
PILOT_LIGHT |
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 Wednesday, Nov 18, 2026 by Pulumi