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

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.

    Using getPolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
    function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetPolicyResult>
    def get_policy(policy_arn: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetPolicyResult
    def get_policy_output(policy_arn: pulumi.Input[Optional[str]] = None,
                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetPolicyResult]
    func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
    func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput

    > Note: This function is named LookupPolicy in the Go SDK.

    public static class GetPolicy 
    {
        public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
    public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
    public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:resiliencehubv2:getPolicy
      arguments:
        # arguments dictionary
    data "aws-native_resiliencehubv2_get_policy" "name" {
        # arguments
    }

    The following arguments are supported:

    PolicyArn string
    The ARN of the policy.
    PolicyArn string
    The ARN of the policy.
    policy_arn string
    The ARN of the policy.
    policyArn String
    The ARN of the policy.
    policyArn string
    The ARN of the policy.
    policy_arn str
    The ARN of the policy.
    policyArn String
    The ARN of the policy.

    getPolicy Result

    The following output properties are available:

    AssociatedServiceCount int
    The number of services associated with this policy.
    AvailabilitySlo Pulumi.AwsNative.ResilienceHubV2.Outputs.PolicyAvailabilitySlo
    CreatedAt string
    The timestamp when the policy was created.
    DataRecovery Pulumi.AwsNative.ResilienceHubV2.Outputs.PolicyDataRecoveryTargets
    Description string
    The description of the policy.
    MultiAz Pulumi.AwsNative.ResilienceHubV2.Outputs.PolicyMultiAzTargets
    MultiRegion Pulumi.AwsNative.ResilienceHubV2.Outputs.PolicyMultiRegionTargets
    PolicyArn string
    The ARN 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.Outputs.Tag>
    Tags assigned to the policy.
    UpdatedAt string
    The timestamp when the policy was last updated.
    AssociatedServiceCount int
    The number of services associated with this policy.
    AvailabilitySlo PolicyAvailabilitySlo
    CreatedAt string
    The timestamp when the policy was created.
    DataRecovery PolicyDataRecoveryTargets
    Description string
    The description of the policy.
    MultiAz PolicyMultiAzTargets
    MultiRegion PolicyMultiRegionTargets
    PolicyArn string
    The ARN 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 Tag
    Tags assigned to the policy.
    UpdatedAt string
    The timestamp when the policy was last updated.
    associated_service_count number
    The number of services associated with this policy.
    availability_slo object
    created_at string
    The timestamp when the policy was created.
    data_recovery object
    description string
    The description of the policy.
    multi_az object
    multi_region object
    policy_arn string
    The ARN 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.
    updated_at string
    The timestamp when the policy was last updated.
    associatedServiceCount Integer
    The number of services associated with this policy.
    availabilitySlo PolicyAvailabilitySlo
    createdAt String
    The timestamp when the policy was created.
    dataRecovery PolicyDataRecoveryTargets
    description String
    The description of the policy.
    multiAz PolicyMultiAzTargets
    multiRegion PolicyMultiRegionTargets
    policyArn String
    The ARN 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.
    updatedAt String
    The timestamp when the policy was last updated.
    associatedServiceCount number
    The number of services associated with this policy.
    availabilitySlo PolicyAvailabilitySlo
    createdAt string
    The timestamp when the policy was created.
    dataRecovery PolicyDataRecoveryTargets
    description string
    The description of the policy.
    multiAz PolicyMultiAzTargets
    multiRegion PolicyMultiRegionTargets
    policyArn string
    The ARN 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.
    updatedAt string
    The timestamp when the policy was last updated.
    associated_service_count int
    The number of services associated with this policy.
    availability_slo PolicyAvailabilitySlo
    created_at str
    The timestamp when the policy was created.
    data_recovery PolicyDataRecoveryTargets
    description str
    The description of the policy.
    multi_az PolicyMultiAzTargets
    multi_region PolicyMultiRegionTargets
    policy_arn str
    The ARN 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[root_Tag]
    Tags assigned to the policy.
    updated_at str
    The timestamp when the policy was last updated.
    associatedServiceCount Number
    The number of services associated with this policy.
    availabilitySlo Property Map
    createdAt String
    The timestamp when the policy was created.
    dataRecovery Property Map
    description String
    The description of the policy.
    multiAz Property Map
    multiRegion Property Map
    policyArn String
    The ARN 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.
    updatedAt String
    The timestamp when the policy was last updated.

    Supporting Types

    PolicyAvailabilitySlo

    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

    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

    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

    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

    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

    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

    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