1. Packages
  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.69.0
published on Monday, Jun 15, 2026 by Pulumi
aws-native logo

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

Viewing docs for AWS Cloud Control v1.69.0
published on Monday, Jun 15, 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?: InvokeOptions): 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[InvokeOptions] = 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 CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
    public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:resiliencehubv2:getPolicy
      arguments:
        # arguments dictionary
    data "aws-native_resiliencehubv2_getpolicy" "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 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.
    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.
    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.
    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.
    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.
    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.
    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

    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

    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

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

    Viewing docs for AWS Cloud Control v1.69.0
    published on Monday, Jun 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial