1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. resiliencehubv2
  6. Policy

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
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:

    AvailabilitySlo Pulumi.AwsNative.ResilienceHubV2.Inputs.PolicyAvailabilitySlo
    DataRecovery Pulumi.AwsNative.ResilienceHubV2.Inputs.PolicyDataRecoveryTargets
    Description string
    The description of the policy.
    KmsKeyId string
    The KMS key ID for encrypting policy data.
    MultiAz Pulumi.AwsNative.ResilienceHubV2.Inputs.PolicyMultiAzTargets
    MultiRegion Pulumi.AwsNative.ResilienceHubV2.Inputs.PolicyMultiRegionTargets
    Name string
    The name of the policy.
    SharingEnabled 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.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    Tags assigned to the policy.
    AvailabilitySlo PolicyAvailabilitySloArgs
    DataRecovery PolicyDataRecoveryTargetsArgs
    Description string
    The description of the policy.
    KmsKeyId string
    The KMS key ID for encrypting policy data.
    MultiAz PolicyMultiAzTargetsArgs
    MultiRegion PolicyMultiRegionTargetsArgs
    Name string
    The name of the policy.
    SharingEnabled 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.
    Tags TagArgs
    Tags assigned to the policy.
    availability_slo object
    data_recovery object
    description string
    The description of the policy.
    kms_key_id string
    The KMS key ID for encrypting policy data.
    multi_az object
    multi_region object
    name string
    The name of the policy.
    sharing_enabled 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.
    tags list(object)
    Tags assigned to the policy.
    availabilitySlo PolicyAvailabilitySlo
    dataRecovery PolicyDataRecoveryTargets
    description String
    The description of the policy.
    kmsKeyId String
    The KMS key ID for encrypting policy data.
    multiAz PolicyMultiAzTargets
    multiRegion PolicyMultiRegionTargets
    name String
    The name of the policy.
    sharingEnabled 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.
    tags List<Tag>
    Tags assigned to the policy.
    availabilitySlo PolicyAvailabilitySlo
    dataRecovery PolicyDataRecoveryTargets
    description string
    The description of the policy.
    kmsKeyId string
    The KMS key ID for encrypting policy data.
    multiAz PolicyMultiAzTargets
    multiRegion PolicyMultiRegionTargets
    name string
    The name of the policy.
    sharingEnabled 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.
    tags Tag[]
    Tags assigned to the policy.
    availability_slo PolicyAvailabilitySloArgs
    data_recovery PolicyDataRecoveryTargetsArgs
    description str
    The description of the policy.
    kms_key_id str
    The KMS key ID for encrypting policy data.
    multi_az PolicyMultiAzTargetsArgs
    multi_region PolicyMultiRegionTargetsArgs
    name str
    The name of the policy.
    sharing_enabled 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.
    tags Sequence[TagArgs]
    Tags assigned to the policy.
    availabilitySlo Property Map
    dataRecovery Property Map
    description String
    The description of the policy.
    kmsKeyId String
    The KMS key ID for encrypting policy data.
    multiAz Property Map
    multiRegion Property Map
    name String
    The name of the policy.
    sharingEnabled 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.
    tags 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:

    AssociatedServiceCount int
    The number of services associated with this policy.
    CreatedAt string
    The timestamp when the policy was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyArn string
    The ARN of the policy.
    UpdatedAt string
    The timestamp when the policy was last updated.
    AssociatedServiceCount int
    The number of services associated with this policy.
    CreatedAt string
    The timestamp when the policy was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyArn string
    The ARN of the policy.
    UpdatedAt string
    The timestamp when the policy was last updated.
    associated_service_count number
    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.
    associatedServiceCount Integer
    The number of services associated with this policy.
    createdAt String
    The timestamp when the policy was created.
    id String
    The provider-assigned unique ID for this managed resource.
    policyArn String
    The ARN of the policy.
    updatedAt String
    The timestamp when the policy was last updated.
    associatedServiceCount number
    The number of services associated with this policy.
    createdAt string
    The timestamp when the policy was created.
    id string
    The provider-assigned unique ID for this managed resource.
    policyArn string
    The ARN of the policy.
    updatedAt string
    The timestamp when the policy was last updated.
    associated_service_count int
    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.
    associatedServiceCount Number
    The number of services associated with this policy.
    createdAt String
    The timestamp when the policy was created.
    id String
    The provider-assigned unique ID for this managed resource.
    policyArn String
    The ARN of the policy.
    updatedAt 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) -> Policy
    func 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

    TimeBetweenBackupsInMinutes int
    Time between backups in minutes.
    TimeBetweenBackupsInMinutes int
    Time between backups in minutes.
    time_between_backups_in_minutes number
    Time between backups in minutes.
    timeBetweenBackupsInMinutes Integer
    Time between backups in minutes.
    timeBetweenBackupsInMinutes number
    Time between backups in minutes.
    time_between_backups_in_minutes int
    Time between backups in minutes.
    timeBetweenBackupsInMinutes Number
    Time between backups in minutes.

    PolicyMultiAzTargets, PolicyMultiAzTargetsArgs

    DisasterRecoveryApproach Pulumi.AwsNative.ResilienceHubV2.PolicyMultiAzTargetsDisasterRecoveryApproach
    Multi-AZ disaster recovery approach.
    RpoInMinutes int
    Recovery Point Objective in minutes.
    RtoInMinutes int
    Recovery Time Objective in minutes.
    DisasterRecoveryApproach PolicyMultiAzTargetsDisasterRecoveryApproach
    Multi-AZ disaster recovery approach.
    RpoInMinutes int
    Recovery Point Objective in minutes.
    RtoInMinutes int
    Recovery Time Objective in minutes.
    disaster_recovery_approach "ACTIVE_ACTIVE" | "HOT_STANDBY" | "WARM_STANDBY" | "PILOT_LIGHT" | "BACKUP_AND_RESTORE"
    Multi-AZ disaster recovery approach.
    rpo_in_minutes number
    Recovery Point Objective in minutes.
    rto_in_minutes number
    Recovery Time Objective in minutes.
    disasterRecoveryApproach PolicyMultiAzTargetsDisasterRecoveryApproach
    Multi-AZ disaster recovery approach.
    rpoInMinutes Integer
    Recovery Point Objective in minutes.
    rtoInMinutes Integer
    Recovery Time Objective in minutes.
    disasterRecoveryApproach PolicyMultiAzTargetsDisasterRecoveryApproach
    Multi-AZ disaster recovery approach.
    rpoInMinutes number
    Recovery Point Objective in minutes.
    rtoInMinutes number
    Recovery Time Objective in minutes.
    disaster_recovery_approach PolicyMultiAzTargetsDisasterRecoveryApproach
    Multi-AZ disaster recovery approach.
    rpo_in_minutes int
    Recovery Point Objective in minutes.
    rto_in_minutes int
    Recovery Time Objective in minutes.
    disasterRecoveryApproach "ACTIVE_ACTIVE" | "HOT_STANDBY" | "WARM_STANDBY" | "PILOT_LIGHT" | "BACKUP_AND_RESTORE"
    Multi-AZ disaster recovery approach.
    rpoInMinutes Number
    Recovery Point Objective in minutes.
    rtoInMinutes Number
    Recovery Time Objective in minutes.

    PolicyMultiAzTargetsDisasterRecoveryApproach

    Multi-AZ disaster recovery approach.

    NameValue
    ActiveActiveACTIVE_ACTIVE
    HotStandbyHOT_STANDBY
    WarmStandbyWARM_STANDBY
    PilotLightPILOT_LIGHT
    BackupAndRestoreBACKUP_AND_RESTORE
    NameValue
    PolicyMultiAzTargetsDisasterRecoveryApproachActiveActiveACTIVE_ACTIVE
    PolicyMultiAzTargetsDisasterRecoveryApproachHotStandbyHOT_STANDBY
    PolicyMultiAzTargetsDisasterRecoveryApproachWarmStandbyWARM_STANDBY
    PolicyMultiAzTargetsDisasterRecoveryApproachPilotLightPILOT_LIGHT
    PolicyMultiAzTargetsDisasterRecoveryApproachBackupAndRestoreBACKUP_AND_RESTORE
    Value
    ACTIVE_ACTIVE
    HOT_STANDBY
    WARM_STANDBY
    PILOT_LIGHT
    BACKUP_AND_RESTORE
    NameValue
    ActiveActiveACTIVE_ACTIVE
    HotStandbyHOT_STANDBY
    WarmStandbyWARM_STANDBY
    PilotLightPILOT_LIGHT
    BackupAndRestoreBACKUP_AND_RESTORE
    NameValue
    ActiveActiveACTIVE_ACTIVE
    HotStandbyHOT_STANDBY
    WarmStandbyWARM_STANDBY
    PilotLightPILOT_LIGHT
    BackupAndRestoreBACKUP_AND_RESTORE
    NameValue
    ACTIVE_ACTIVEACTIVE_ACTIVE
    HOT_STANDBYHOT_STANDBY
    WARM_STANDBYWARM_STANDBY
    PILOT_LIGHTPILOT_LIGHT
    BACKUP_AND_RESTOREBACKUP_AND_RESTORE
    Value
    ACTIVE_ACTIVE
    HOT_STANDBY
    WARM_STANDBY
    PILOT_LIGHT
    BACKUP_AND_RESTORE

    PolicyMultiRegionTargets, PolicyMultiRegionTargetsArgs

    DisasterRecoveryApproach Pulumi.AwsNative.ResilienceHubV2.PolicyMultiRegionTargetsDisasterRecoveryApproach
    Multi-Region disaster recovery approach.
    RpoInMinutes int
    Recovery Point Objective in minutes.
    RtoInMinutes int
    Recovery Time Objective in minutes.
    DisasterRecoveryApproach PolicyMultiRegionTargetsDisasterRecoveryApproach
    Multi-Region disaster recovery approach.
    RpoInMinutes int
    Recovery Point Objective in minutes.
    RtoInMinutes int
    Recovery Time Objective in minutes.
    disaster_recovery_approach "ACTIVE_ACTIVE" | "HOT_STANDBY" | "WARM_STANDBY" | "PILOT_LIGHT" | "BACKUP_AND_RESTORE"
    Multi-Region disaster recovery approach.
    rpo_in_minutes number
    Recovery Point Objective in minutes.
    rto_in_minutes number
    Recovery Time Objective in minutes.
    disasterRecoveryApproach PolicyMultiRegionTargetsDisasterRecoveryApproach
    Multi-Region disaster recovery approach.
    rpoInMinutes Integer
    Recovery Point Objective in minutes.
    rtoInMinutes Integer
    Recovery Time Objective in minutes.
    disasterRecoveryApproach PolicyMultiRegionTargetsDisasterRecoveryApproach
    Multi-Region disaster recovery approach.
    rpoInMinutes number
    Recovery Point Objective in minutes.
    rtoInMinutes number
    Recovery Time Objective in minutes.
    disaster_recovery_approach PolicyMultiRegionTargetsDisasterRecoveryApproach
    Multi-Region disaster recovery approach.
    rpo_in_minutes int
    Recovery Point Objective in minutes.
    rto_in_minutes int
    Recovery Time Objective in minutes.
    disasterRecoveryApproach "ACTIVE_ACTIVE" | "HOT_STANDBY" | "WARM_STANDBY" | "PILOT_LIGHT" | "BACKUP_AND_RESTORE"
    Multi-Region disaster recovery approach.
    rpoInMinutes Number
    Recovery Point Objective in minutes.
    rtoInMinutes Number
    Recovery Time Objective in minutes.

    PolicyMultiRegionTargetsDisasterRecoveryApproach

    Multi-Region disaster recovery approach.

    NameValue
    ActiveActiveACTIVE_ACTIVE
    HotStandbyHOT_STANDBY
    WarmStandbyWARM_STANDBY
    PilotLightPILOT_LIGHT
    BackupAndRestoreBACKUP_AND_RESTORE
    NameValue
    PolicyMultiRegionTargetsDisasterRecoveryApproachActiveActiveACTIVE_ACTIVE
    PolicyMultiRegionTargetsDisasterRecoveryApproachHotStandbyHOT_STANDBY
    PolicyMultiRegionTargetsDisasterRecoveryApproachWarmStandbyWARM_STANDBY
    PolicyMultiRegionTargetsDisasterRecoveryApproachPilotLightPILOT_LIGHT
    PolicyMultiRegionTargetsDisasterRecoveryApproachBackupAndRestoreBACKUP_AND_RESTORE
    Value
    ACTIVE_ACTIVE
    HOT_STANDBY
    WARM_STANDBY
    PILOT_LIGHT
    BACKUP_AND_RESTORE
    NameValue
    ActiveActiveACTIVE_ACTIVE
    HotStandbyHOT_STANDBY
    WarmStandbyWARM_STANDBY
    PilotLightPILOT_LIGHT
    BackupAndRestoreBACKUP_AND_RESTORE
    NameValue
    ActiveActiveACTIVE_ACTIVE
    HotStandbyHOT_STANDBY
    WarmStandbyWARM_STANDBY
    PilotLightPILOT_LIGHT
    BackupAndRestoreBACKUP_AND_RESTORE
    NameValue
    ACTIVE_ACTIVEACTIVE_ACTIVE
    HOT_STANDBYHOT_STANDBY
    WARM_STANDBYWARM_STANDBY
    PILOT_LIGHTPILOT_LIGHT
    BACKUP_AND_RESTOREBACKUP_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.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial