Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
published on Thursday, Sep 10, 2026 by Pulumi
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
published on Thursday, Sep 10, 2026 by Pulumi
Data source for reading an AWS Resilience Hub V2 Policy.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.resiliencehub.getV2Policy({
arn: "arn:aws:resiliencehub:us-west-2:123456789012:policy/example-policy:abc123",
});
import pulumi
import pulumi_aws as aws
example = aws.resiliencehub.get_v2_policy(arn="arn:aws:resiliencehub:us-west-2:123456789012:policy/example-policy:abc123")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/resiliencehub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := resiliencehub.LookupV2Policy(ctx, &resiliencehub.LookupV2PolicyArgs{
Arn: "arn:aws:resiliencehub:us-west-2:123456789012:policy/example-policy:abc123",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.ResilienceHub.GetV2Policy.Invoke(new()
{
Arn = "arn:aws:resiliencehub:us-west-2:123456789012:policy/example-policy:abc123",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.resiliencehub.ResiliencehubFunctions;
import com.pulumi.aws.resiliencehub.inputs.GetV2PolicyArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = ResiliencehubFunctions.getV2Policy(GetV2PolicyArgs.builder()
.arn("arn:aws:resiliencehub:us-west-2:123456789012:policy/example-policy:abc123")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:resiliencehub:getV2Policy
arguments:
arn: arn:aws:resiliencehub:us-west-2:123456789012:policy/example-policy:abc123
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_resiliencehub_getv2policy" "example" {
arn = "arn:aws:resiliencehub:us-west-2:123456789012:policy/example-policy:abc123"
}
Using getV2Policy
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 getV2Policy(args: GetV2PolicyArgs, opts?: InvokeOptions): Promise<GetV2PolicyResult>
function getV2PolicyOutput(args: GetV2PolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetV2PolicyResult>def get_v2_policy(arn: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetV2PolicyResult
def get_v2_policy_output(arn: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetV2PolicyResult]func LookupV2Policy(ctx *Context, args *LookupV2PolicyArgs, opts ...InvokeOption) (*LookupV2PolicyResult, error)
func LookupV2PolicyOutput(ctx *Context, args *LookupV2PolicyOutputArgs, opts ...InvokeOption) LookupV2PolicyResultOutput> Note: This function is named LookupV2Policy in the Go SDK.
public static class GetV2Policy
{
public static Task<GetV2PolicyResult> InvokeAsync(GetV2PolicyArgs args, InvokeOptions? opts = null)
public static Output<GetV2PolicyResult> Invoke(GetV2PolicyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetV2PolicyResult> Invoke(GetV2PolicyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetV2PolicyResult> getV2Policy(GetV2PolicyArgs args, InvokeOptions options)
public static Output<GetV2PolicyResult> getV2Policy(GetV2PolicyArgs args, InvokeOptions options)
public static Output<GetV2PolicyResult> getV2Policy(GetV2PolicyArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws:resiliencehub/getV2Policy:getV2Policy
arguments:
# arguments dictionarydata "aws_resiliencehub_get_v2_policy" "name" {
# arguments
}The following arguments are supported:
getV2Policy Result
The following output properties are available:
- Arn string
- Availability
Slos List<GetV2Policy Availability Slo> - Availability SLO configuration. See
availabilitySloBlock below. - Data
Recoveries List<GetV2Policy Data Recovery> - Data recovery configuration. See
dataRecoveryBlock below. - Description string
- Description of the policy.
- Kms
Key stringId - KMS key ARN.
- Multi
Azs List<GetV2Policy Multi Az> - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - Multi
Regions List<GetV2Policy Multi Region> - Multi-region disaster recovery configuration. See
multiRegionBlock below. - Name string
- Name of the policy.
- Region string
- Dictionary<string, string>
- Map of tags assigned to the resource.
- Arn string
- Availability
Slos []GetV2Policy Availability Slo - Availability SLO configuration. See
availabilitySloBlock below. - Data
Recoveries []GetV2Policy Data Recovery - Data recovery configuration. See
dataRecoveryBlock below. - Description string
- Description of the policy.
- Kms
Key stringId - KMS key ARN.
- Multi
Azs []GetV2Policy Multi Az - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - Multi
Regions []GetV2Policy Multi Region - Multi-region disaster recovery configuration. See
multiRegionBlock below. - Name string
- Name of the policy.
- Region string
- map[string]string
- Map of tags assigned to the resource.
- arn string
- availability_
slos list(object) - Availability SLO configuration. See
availabilitySloBlock below. - data_
recoveries list(object) - Data recovery configuration. See
dataRecoveryBlock below. - description string
- Description of the policy.
- kms_
key_ stringid - KMS key ARN.
- multi_
azs list(object) - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi_
regions list(object) - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name string
- Name of the policy.
- region string
- map(string)
- Map of tags assigned to the resource.
- arn String
- availability
Slos List<GetV2Policy Availability Slo> - Availability SLO configuration. See
availabilitySloBlock below. - data
Recoveries List<GetV2Policy Data Recovery> - Data recovery configuration. See
dataRecoveryBlock below. - description String
- Description of the policy.
- kms
Key StringId - KMS key ARN.
- multi
Azs List<GetV2Policy Multi Az> - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi
Regions List<GetV2Policy Multi Region> - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name String
- Name of the policy.
- region String
- Map<String,String>
- Map of tags assigned to the resource.
- arn string
- availability
Slos GetV2Policy Availability Slo[] - Availability SLO configuration. See
availabilitySloBlock below. - data
Recoveries GetV2Policy Data Recovery[] - Data recovery configuration. See
dataRecoveryBlock below. - description string
- Description of the policy.
- kms
Key stringId - KMS key ARN.
- multi
Azs GetV2Policy Multi Az[] - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi
Regions GetV2Policy Multi Region[] - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name string
- Name of the policy.
- region string
- {[key: string]: string}
- Map of tags assigned to the resource.
- arn str
- availability_
slos Sequence[GetV2Policy Availability Slo] - Availability SLO configuration. See
availabilitySloBlock below. - data_
recoveries Sequence[GetV2Policy Data Recovery] - Data recovery configuration. See
dataRecoveryBlock below. - description str
- Description of the policy.
- kms_
key_ strid - KMS key ARN.
- multi_
azs Sequence[GetV2Policy Multi Az] - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi_
regions Sequence[GetV2Policy Multi Region] - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name str
- Name of the policy.
- region str
- Mapping[str, str]
- Map of tags assigned to the resource.
- arn String
- availability
Slos List<Property Map> - Availability SLO configuration. See
availabilitySloBlock below. - data
Recoveries List<Property Map> - Data recovery configuration. See
dataRecoveryBlock below. - description String
- Description of the policy.
- kms
Key StringId - KMS key ARN.
- multi
Azs List<Property Map> - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi
Regions List<Property Map> - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name String
- Name of the policy.
- region String
- Map<String>
- Map of tags assigned to the resource.
Supporting Types
GetV2PolicyAvailabilitySlo
- Target double
- Availability target as a percentage.
- Target float64
- Availability target as a percentage.
- target number
- Availability target as a percentage.
- target Double
- Availability target as a percentage.
- target number
- Availability target as a percentage.
- target float
- Availability target as a percentage.
- target Number
- Availability target as a percentage.
GetV2PolicyDataRecovery
- Time
Between intBackups In Minutes - Maximum time between backups in minutes.
- Time
Between intBackups In Minutes - Maximum time between backups in minutes.
- time_
between_ numberbackups_ in_ minutes - Maximum time between backups in minutes.
- time
Between IntegerBackups In Minutes - Maximum time between backups in minutes.
- time
Between numberBackups In Minutes - Maximum time between backups in minutes.
- time_
between_ intbackups_ in_ minutes - Maximum time between backups in minutes.
- time
Between NumberBackups In Minutes - Maximum time between backups in minutes.
GetV2PolicyMultiAz
- Disaster
Recovery stringApproach - Disaster recovery approach.
- Rpo
In intMinutes - Recovery point objective in minutes.
- Rto
In intMinutes - Recovery time objective in minutes.
- Disaster
Recovery stringApproach - Disaster recovery approach.
- Rpo
In intMinutes - Recovery point objective in minutes.
- Rto
In intMinutes - Recovery time objective in minutes.
- disaster_
recovery_ stringapproach - Disaster recovery approach.
- rpo_
in_ numberminutes - Recovery point objective in minutes.
- rto_
in_ numberminutes - Recovery time objective in minutes.
- disaster
Recovery StringApproach - Disaster recovery approach.
- rpo
In IntegerMinutes - Recovery point objective in minutes.
- rto
In IntegerMinutes - Recovery time objective in minutes.
- disaster
Recovery stringApproach - Disaster recovery approach.
- rpo
In numberMinutes - Recovery point objective in minutes.
- rto
In numberMinutes - Recovery time objective in minutes.
- disaster_
recovery_ strapproach - Disaster recovery approach.
- rpo_
in_ intminutes - Recovery point objective in minutes.
- rto_
in_ intminutes - Recovery time objective in minutes.
- disaster
Recovery StringApproach - Disaster recovery approach.
- rpo
In NumberMinutes - Recovery point objective in minutes.
- rto
In NumberMinutes - Recovery time objective in minutes.
GetV2PolicyMultiRegion
- Disaster
Recovery stringApproach - Disaster recovery approach.
- Rpo
In intMinutes - Recovery point objective in minutes.
- Rto
In intMinutes - Recovery time objective in minutes.
- Disaster
Recovery stringApproach - Disaster recovery approach.
- Rpo
In intMinutes - Recovery point objective in minutes.
- Rto
In intMinutes - Recovery time objective in minutes.
- disaster_
recovery_ stringapproach - Disaster recovery approach.
- rpo_
in_ numberminutes - Recovery point objective in minutes.
- rto_
in_ numberminutes - Recovery time objective in minutes.
- disaster
Recovery StringApproach - Disaster recovery approach.
- rpo
In IntegerMinutes - Recovery point objective in minutes.
- rto
In IntegerMinutes - Recovery time objective in minutes.
- disaster
Recovery stringApproach - Disaster recovery approach.
- rpo
In numberMinutes - Recovery point objective in minutes.
- rto
In numberMinutes - Recovery time objective in minutes.
- disaster_
recovery_ strapproach - Disaster recovery approach.
- rpo_
in_ intminutes - Recovery point objective in minutes.
- rto_
in_ intminutes - Recovery time objective in minutes.
- disaster
Recovery StringApproach - Disaster recovery approach.
- rpo
In NumberMinutes - Recovery point objective in minutes.
- rto
In NumberMinutes - Recovery time objective in minutes.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
published on Thursday, Sep 10, 2026 by Pulumi