1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. resiliencehub
  6. getV2Service
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi

    Data source for reading an AWS Resilience Hub V2 Service.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.resiliencehub.getV2Service({
        arn: "arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.resiliencehub.get_v2_service(arn="arn:aws:resiliencehub:us-west-2:123456789012:service/example-service: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.LookupV2Service(ctx, &resiliencehub.LookupV2ServiceArgs{
    			Arn: "arn:aws:resiliencehub:us-west-2:123456789012:service/example-service: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.GetV2Service.Invoke(new()
        {
            Arn = "arn:aws:resiliencehub:us-west-2:123456789012:service/example-service: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.GetV2ServiceArgs;
    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.getV2Service(GetV2ServiceArgs.builder()
                .arn("arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:resiliencehub:getV2Service
          arguments:
            arn: arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_resiliencehub_getv2service" "example" {
      arn = "arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123"
    }
    

    Using getV2Service

    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 getV2Service(args: GetV2ServiceArgs, opts?: InvokeOptions): Promise<GetV2ServiceResult>
    function getV2ServiceOutput(args: GetV2ServiceOutputArgs, opts?: InvokeOutputOptions): Output<GetV2ServiceResult>
    def get_v2_service(arn: Optional[str] = None,
                       region: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetV2ServiceResult
    def get_v2_service_output(arn: pulumi.Input[Optional[str]] = None,
                       region: pulumi.Input[Optional[str]] = None,
                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetV2ServiceResult]
    func LookupV2Service(ctx *Context, args *LookupV2ServiceArgs, opts ...InvokeOption) (*LookupV2ServiceResult, error)
    func LookupV2ServiceOutput(ctx *Context, args *LookupV2ServiceOutputArgs, opts ...InvokeOption) LookupV2ServiceResultOutput

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

    public static class GetV2Service 
    {
        public static Task<GetV2ServiceResult> InvokeAsync(GetV2ServiceArgs args, InvokeOptions? opts = null)
        public static Output<GetV2ServiceResult> Invoke(GetV2ServiceInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetV2ServiceResult> Invoke(GetV2ServiceInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetV2ServiceResult> getV2Service(GetV2ServiceArgs args, InvokeOptions options)
    public static Output<GetV2ServiceResult> getV2Service(GetV2ServiceArgs args, InvokeOptions options)
    public static Output<GetV2ServiceResult> getV2Service(GetV2ServiceArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws:resiliencehub/getV2Service:getV2Service
      arguments:
        # arguments dictionary
    data "aws_resiliencehub_get_v2_service" "name" {
        # arguments
    }

    The following arguments are supported:

    Arn string
    ARN of the service.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Arn string
    ARN of the service.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    arn string
    ARN of the service.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    arn String
    ARN of the service.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    arn string
    ARN of the service.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    arn str
    ARN of the service.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    arn String
    ARN of the service.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getV2Service Result

    The following output properties are available:

    Arn string
    AssociatedSystems List<GetV2ServiceAssociatedSystem>
    Systems associated with the service. See associatedSystem Block below.
    Description string
    Description of the service.
    KmsKeyId string
    KMS key ARN.
    Name string
    Name of the service.
    PermissionModels List<GetV2ServicePermissionModel>
    Permission model configuration. See permissionModel Block below.
    PolicyArn string
    ARN of the associated resilience policy.
    Region string
    Regions List<string>
    List of AWS regions where the service operates.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource.
    Arn string
    AssociatedSystems []GetV2ServiceAssociatedSystem
    Systems associated with the service. See associatedSystem Block below.
    Description string
    Description of the service.
    KmsKeyId string
    KMS key ARN.
    Name string
    Name of the service.
    PermissionModels []GetV2ServicePermissionModel
    Permission model configuration. See permissionModel Block below.
    PolicyArn string
    ARN of the associated resilience policy.
    Region string
    Regions []string
    List of AWS regions where the service operates.
    Tags map[string]string
    Map of tags assigned to the resource.
    arn string
    associated_systems list(object)
    Systems associated with the service. See associatedSystem Block below.
    description string
    Description of the service.
    kms_key_id string
    KMS key ARN.
    name string
    Name of the service.
    permission_models list(object)
    Permission model configuration. See permissionModel Block below.
    policy_arn string
    ARN of the associated resilience policy.
    region string
    regions list(string)
    List of AWS regions where the service operates.
    tags map(string)
    Map of tags assigned to the resource.
    arn String
    associatedSystems List<GetV2ServiceAssociatedSystem>
    Systems associated with the service. See associatedSystem Block below.
    description String
    Description of the service.
    kmsKeyId String
    KMS key ARN.
    name String
    Name of the service.
    permissionModels List<GetV2ServicePermissionModel>
    Permission model configuration. See permissionModel Block below.
    policyArn String
    ARN of the associated resilience policy.
    region String
    regions List<String>
    List of AWS regions where the service operates.
    tags Map<String,String>
    Map of tags assigned to the resource.
    arn string
    associatedSystems GetV2ServiceAssociatedSystem[]
    Systems associated with the service. See associatedSystem Block below.
    description string
    Description of the service.
    kmsKeyId string
    KMS key ARN.
    name string
    Name of the service.
    permissionModels GetV2ServicePermissionModel[]
    Permission model configuration. See permissionModel Block below.
    policyArn string
    ARN of the associated resilience policy.
    region string
    regions string[]
    List of AWS regions where the service operates.
    tags {[key: string]: string}
    Map of tags assigned to the resource.
    arn str
    associated_systems Sequence[GetV2ServiceAssociatedSystem]
    Systems associated with the service. See associatedSystem Block below.
    description str
    Description of the service.
    kms_key_id str
    KMS key ARN.
    name str
    Name of the service.
    permission_models Sequence[GetV2ServicePermissionModel]
    Permission model configuration. See permissionModel Block below.
    policy_arn str
    ARN of the associated resilience policy.
    region str
    regions Sequence[str]
    List of AWS regions where the service operates.
    tags Mapping[str, str]
    Map of tags assigned to the resource.
    arn String
    associatedSystems List<Property Map>
    Systems associated with the service. See associatedSystem Block below.
    description String
    Description of the service.
    kmsKeyId String
    KMS key ARN.
    name String
    Name of the service.
    permissionModels List<Property Map>
    Permission model configuration. See permissionModel Block below.
    policyArn String
    ARN of the associated resilience policy.
    region String
    regions List<String>
    List of AWS regions where the service operates.
    tags Map<String>
    Map of tags assigned to the resource.

    Supporting Types

    GetV2ServiceAssociatedSystem

    SystemArn string
    ARN of the associated system.
    UserJourneyIds List<string>
    List of user journey identifiers that associate the system with the service.
    SystemArn string
    ARN of the associated system.
    UserJourneyIds []string
    List of user journey identifiers that associate the system with the service.
    system_arn string
    ARN of the associated system.
    user_journey_ids list(string)
    List of user journey identifiers that associate the system with the service.
    systemArn String
    ARN of the associated system.
    userJourneyIds List<String>
    List of user journey identifiers that associate the system with the service.
    systemArn string
    ARN of the associated system.
    userJourneyIds string[]
    List of user journey identifiers that associate the system with the service.
    system_arn str
    ARN of the associated system.
    user_journey_ids Sequence[str]
    List of user journey identifiers that associate the system with the service.
    systemArn String
    ARN of the associated system.
    userJourneyIds List<String>
    List of user journey identifiers that associate the system with the service.

    GetV2ServicePermissionModel

    CrossAccountRoles List<GetV2ServicePermissionModelCrossAccountRole>
    Cross-account IAM role. See crossAccountRole Block below.
    InvokerRoleName string
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    CrossAccountRoles []GetV2ServicePermissionModelCrossAccountRole
    Cross-account IAM role. See crossAccountRole Block below.
    InvokerRoleName string
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    cross_account_roles list(object)
    Cross-account IAM role. See crossAccountRole Block below.
    invoker_role_name string
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    crossAccountRoles List<GetV2ServicePermissionModelCrossAccountRole>
    Cross-account IAM role. See crossAccountRole Block below.
    invokerRoleName String
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    crossAccountRoles GetV2ServicePermissionModelCrossAccountRole[]
    Cross-account IAM role. See crossAccountRole Block below.
    invokerRoleName string
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    cross_account_roles Sequence[GetV2ServicePermissionModelCrossAccountRole]
    Cross-account IAM role. See crossAccountRole Block below.
    invoker_role_name str
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    crossAccountRoles List<Property Map>
    Cross-account IAM role. See crossAccountRole Block below.
    invokerRoleName String
    Name of the IAM role that Resilience Hub assumes for resource discovery.

    GetV2ServicePermissionModelCrossAccountRole

    CrossAccountRoleArn string
    ARN of the IAM Role for the profile.
    ExternalId string
    External ID used for assuming the cross-account role.
    CrossAccountRoleArn string
    ARN of the IAM Role for the profile.
    ExternalId string
    External ID used for assuming the cross-account role.
    cross_account_role_arn string
    ARN of the IAM Role for the profile.
    external_id string
    External ID used for assuming the cross-account role.
    crossAccountRoleArn String
    ARN of the IAM Role for the profile.
    externalId String
    External ID used for assuming the cross-account role.
    crossAccountRoleArn string
    ARN of the IAM Role for the profile.
    externalId string
    External ID used for assuming the cross-account role.
    cross_account_role_arn str
    ARN of the IAM Role for the profile.
    external_id str
    External ID used for assuming the cross-account role.
    crossAccountRoleArn String
    ARN of the IAM Role for the profile.
    externalId String
    External ID used for assuming the cross-account role.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.46.0
    published on Thursday, Sep 10, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial