1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. resiliencehub
  6. V2Service
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

    Resource for managing an AWS Resilience Hub V2 Service.

    A service is the primary building block in Resilience Hub. It comprises AWS resources, code, and observability that together deliver a specific capability. Services can be associated with a resilience policy and a permission model for resource discovery.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.resiliencehub.V2Service("example", {
        permissionModel: {
            invokerRoleName: "AWSResilienceHubAssessmentRole",
        },
        name: "example-service",
        regions: ["us-west-2"],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.resiliencehub.V2Service("example",
        permission_model={
            "invoker_role_name": "AWSResilienceHubAssessmentRole",
        },
        name="example-service",
        regions=["us-west-2"])
    
    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.NewV2Service(ctx, "example", &resiliencehub.V2ServiceArgs{
    			PermissionModel: &resiliencehub.V2ServicePermissionModelArgs{
    				InvokerRoleName: pulumi.String("AWSResilienceHubAssessmentRole"),
    			},
    			Name: pulumi.String("example-service"),
    			Regions: pulumi.StringArray{
    				pulumi.String("us-west-2"),
    			},
    		})
    		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 = new Aws.ResilienceHub.V2Service("example", new()
        {
            PermissionModel = new Aws.ResilienceHub.Inputs.V2ServicePermissionModelArgs
            {
                InvokerRoleName = "AWSResilienceHubAssessmentRole",
            },
            Name = "example-service",
            Regions = new[]
            {
                "us-west-2",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.resiliencehub.V2Service;
    import com.pulumi.aws.resiliencehub.V2ServiceArgs;
    import com.pulumi.aws.resiliencehub.inputs.V2ServicePermissionModelArgs;
    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) {
            var example = new V2Service("example", V2ServiceArgs.builder()
                .permissionModel(V2ServicePermissionModelArgs.builder()
                    .invokerRoleName("AWSResilienceHubAssessmentRole")
                    .build())
                .name("example-service")
                .regions("us-west-2")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:resiliencehub:V2Service
        properties:
          permissionModel:
            invokerRoleName: AWSResilienceHubAssessmentRole
          name: example-service
          regions:
            - us-west-2
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_resiliencehub_v2service" "example" {
      permission_model = {
        invoker_role_name = "AWSResilienceHubAssessmentRole"
      }
      name    = "example-service"
      regions = ["us-west-2"]
    }
    

    With Policy

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.resiliencehub.V2Policy("example", {
        availabilitySlo: {
            target: 99.9,
        },
        name: "example-policy",
    });
    const exampleV2Service = new aws.resiliencehub.V2Service("example", {
        permissionModel: {
            invokerRoleName: "AWSResilienceHubAssessmentRole",
        },
        name: "example-service",
        description: "Production API service",
        policyArn: example.arn,
        regions: [
            "us-west-2",
            "us-east-1",
        ],
        tags: {
            Environment: "production",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.resiliencehub.V2Policy("example",
        availability_slo={
            "target": 99.9,
        },
        name="example-policy")
    example_v2_service = aws.resiliencehub.V2Service("example",
        permission_model={
            "invoker_role_name": "AWSResilienceHubAssessmentRole",
        },
        name="example-service",
        description="Production API service",
        policy_arn=example.arn,
        regions=[
            "us-west-2",
            "us-east-1",
        ],
        tags={
            "Environment": "production",
        })
    
    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 {
    		example, err := resiliencehub.NewV2Policy(ctx, "example", &resiliencehub.V2PolicyArgs{
    			AvailabilitySlo: &resiliencehub.V2PolicyAvailabilitySloArgs{
    				Target: pulumi.Float64(99.9),
    			},
    			Name: pulumi.String("example-policy"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = resiliencehub.NewV2Service(ctx, "example", &resiliencehub.V2ServiceArgs{
    			PermissionModel: &resiliencehub.V2ServicePermissionModelArgs{
    				InvokerRoleName: pulumi.String("AWSResilienceHubAssessmentRole"),
    			},
    			Name:        pulumi.String("example-service"),
    			Description: pulumi.String("Production API service"),
    			PolicyArn:   example.Arn,
    			Regions: pulumi.StringArray{
    				pulumi.String("us-west-2"),
    				pulumi.String("us-east-1"),
    			},
    			Tags: pulumi.StringMap{
    				"Environment": pulumi.String("production"),
    			},
    		})
    		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 = new Aws.ResilienceHub.V2Policy("example", new()
        {
            AvailabilitySlo = new Aws.ResilienceHub.Inputs.V2PolicyAvailabilitySloArgs
            {
                Target = 99.9,
            },
            Name = "example-policy",
        });
    
        var exampleV2Service = new Aws.ResilienceHub.V2Service("example", new()
        {
            PermissionModel = new Aws.ResilienceHub.Inputs.V2ServicePermissionModelArgs
            {
                InvokerRoleName = "AWSResilienceHubAssessmentRole",
            },
            Name = "example-service",
            Description = "Production API service",
            PolicyArn = example.Arn,
            Regions = new[]
            {
                "us-west-2",
                "us-east-1",
            },
            Tags = 
            {
                { "Environment", "production" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.resiliencehub.V2Policy;
    import com.pulumi.aws.resiliencehub.V2PolicyArgs;
    import com.pulumi.aws.resiliencehub.inputs.V2PolicyAvailabilitySloArgs;
    import com.pulumi.aws.resiliencehub.V2Service;
    import com.pulumi.aws.resiliencehub.V2ServiceArgs;
    import com.pulumi.aws.resiliencehub.inputs.V2ServicePermissionModelArgs;
    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) {
            var example = new V2Policy("example", V2PolicyArgs.builder()
                .availabilitySlo(V2PolicyAvailabilitySloArgs.builder()
                    .target(99.9)
                    .build())
                .name("example-policy")
                .build());
    
            var exampleV2Service = new V2Service("exampleV2Service", V2ServiceArgs.builder()
                .permissionModel(V2ServicePermissionModelArgs.builder()
                    .invokerRoleName("AWSResilienceHubAssessmentRole")
                    .build())
                .name("example-service")
                .description("Production API service")
                .policyArn(example.arn())
                .regions(            
                    "us-west-2",
                    "us-east-1")
                .tags(Map.of("Environment", "production"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:resiliencehub:V2Policy
        properties:
          availabilitySlo:
            target: 99.9
          name: example-policy
      exampleV2Service:
        type: aws:resiliencehub:V2Service
        name: example
        properties:
          permissionModel:
            invokerRoleName: AWSResilienceHubAssessmentRole
          name: example-service
          description: Production API service
          policyArn: ${example.arn}
          regions:
            - us-west-2
            - us-east-1
          tags:
            Environment: production
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_resiliencehub_v2policy" "example" {
      availability_slo = {
        target = 99.9
      }
      name = "example-policy"
    }
    resource "aws_resiliencehub_v2service" "example" {
      permission_model = {
        invoker_role_name = "AWSResilienceHubAssessmentRole"
      }
      name        = "example-service"
      description = "Production API service"
      policy_arn  = aws_resiliencehub_v2policy.example.arn
      regions     = ["us-west-2", "us-east-1"]
      tags = {
        "Environment" = "production"
      }
    }
    

    With Associated Systems

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.resiliencehub.V2System("example", {name: "example-system"});
    const exampleV2Service = new aws.resiliencehub.V2Service("example", {
        permissionModel: {
            invokerRoleName: "AWSResilienceHubAssessmentRole",
        },
        associatedSystems: [{
            systemArn: example.arn,
        }],
        name: "example-service",
        regions: ["us-west-2"],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.resiliencehub.V2System("example", name="example-system")
    example_v2_service = aws.resiliencehub.V2Service("example",
        permission_model={
            "invoker_role_name": "AWSResilienceHubAssessmentRole",
        },
        associated_systems=[{
            "system_arn": example.arn,
        }],
        name="example-service",
        regions=["us-west-2"])
    
    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 {
    		example, err := resiliencehub.NewV2System(ctx, "example", &resiliencehub.V2SystemArgs{
    			Name: pulumi.String("example-system"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = resiliencehub.NewV2Service(ctx, "example", &resiliencehub.V2ServiceArgs{
    			PermissionModel: &resiliencehub.V2ServicePermissionModelArgs{
    				InvokerRoleName: pulumi.String("AWSResilienceHubAssessmentRole"),
    			},
    			AssociatedSystems: resiliencehub.V2ServiceAssociatedSystemArray{
    				&resiliencehub.V2ServiceAssociatedSystemArgs{
    					SystemArn: example.Arn,
    				},
    			},
    			Name: pulumi.String("example-service"),
    			Regions: pulumi.StringArray{
    				pulumi.String("us-west-2"),
    			},
    		})
    		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 = new Aws.ResilienceHub.V2System("example", new()
        {
            Name = "example-system",
        });
    
        var exampleV2Service = new Aws.ResilienceHub.V2Service("example", new()
        {
            PermissionModel = new Aws.ResilienceHub.Inputs.V2ServicePermissionModelArgs
            {
                InvokerRoleName = "AWSResilienceHubAssessmentRole",
            },
            AssociatedSystems = new[]
            {
                new Aws.ResilienceHub.Inputs.V2ServiceAssociatedSystemArgs
                {
                    SystemArn = example.Arn,
                },
            },
            Name = "example-service",
            Regions = new[]
            {
                "us-west-2",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.resiliencehub.V2System;
    import com.pulumi.aws.resiliencehub.V2SystemArgs;
    import com.pulumi.aws.resiliencehub.V2Service;
    import com.pulumi.aws.resiliencehub.V2ServiceArgs;
    import com.pulumi.aws.resiliencehub.inputs.V2ServicePermissionModelArgs;
    import com.pulumi.aws.resiliencehub.inputs.V2ServiceAssociatedSystemArgs;
    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) {
            var example = new V2System("example", V2SystemArgs.builder()
                .name("example-system")
                .build());
    
            var exampleV2Service = new V2Service("exampleV2Service", V2ServiceArgs.builder()
                .permissionModel(V2ServicePermissionModelArgs.builder()
                    .invokerRoleName("AWSResilienceHubAssessmentRole")
                    .build())
                .associatedSystems(V2ServiceAssociatedSystemArgs.builder()
                    .systemArn(example.arn())
                    .build())
                .name("example-service")
                .regions("us-west-2")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:resiliencehub:V2System
        properties:
          name: example-system
      exampleV2Service:
        type: aws:resiliencehub:V2Service
        name: example
        properties:
          permissionModel:
            invokerRoleName: AWSResilienceHubAssessmentRole
          associatedSystems:
            - systemArn: ${example.arn}
          name: example-service
          regions:
            - us-west-2
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_resiliencehub_v2system" "example" {
      name = "example-system"
    }
    resource "aws_resiliencehub_v2service" "example" {
      permission_model = {
        invoker_role_name = "AWSResilienceHubAssessmentRole"
      }
      associated_systems {
        system_arn = aws_resiliencehub_v2system.example.arn
      }
      name    = "example-service"
      regions = ["us-west-2"]
    }
    

    Create V2Service Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new V2Service(name: string, args: V2ServiceArgs, opts?: CustomResourceOptions);
    @overload
    def V2Service(resource_name: str,
                  args: V2ServiceArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def V2Service(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  permission_model: Optional[V2ServicePermissionModelArgs] = None,
                  regions: Optional[Sequence[str]] = None,
                  associated_systems: Optional[Sequence[V2ServiceAssociatedSystemArgs]] = None,
                  dependency_discovery: Optional[str] = None,
                  description: Optional[str] = None,
                  kms_key_id: Optional[str] = None,
                  name: Optional[str] = None,
                  policy_arn: Optional[str] = None,
                  region: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None)
    func NewV2Service(ctx *Context, name string, args V2ServiceArgs, opts ...ResourceOption) (*V2Service, error)
    public V2Service(string name, V2ServiceArgs args, CustomResourceOptions? opts = null)
    public V2Service(String name, V2ServiceArgs args)
    public V2Service(String name, V2ServiceArgs args, CustomResourceOptions options)
    
    type: aws:resiliencehub:V2Service
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_resiliencehub_v2_service" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args V2ServiceArgs
    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 V2ServiceArgs
    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 V2ServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args V2ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args V2ServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var v2serviceResource = new Aws.ResilienceHub.V2Service("v2serviceResource", new()
    {
        PermissionModel = new Aws.ResilienceHub.Inputs.V2ServicePermissionModelArgs
        {
            InvokerRoleName = "string",
            CrossAccountRoles = new[]
            {
                new Aws.ResilienceHub.Inputs.V2ServicePermissionModelCrossAccountRoleArgs
                {
                    CrossAccountRoleArn = "string",
                    ExternalId = "string",
                },
            },
        },
        Regions = new[]
        {
            "string",
        },
        AssociatedSystems = new[]
        {
            new Aws.ResilienceHub.Inputs.V2ServiceAssociatedSystemArgs
            {
                SystemArn = "string",
                UserJourneyIds = new[]
                {
                    "string",
                },
            },
        },
        DependencyDiscovery = "string",
        Description = "string",
        KmsKeyId = "string",
        Name = "string",
        PolicyArn = "string",
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := resiliencehub.NewV2Service(ctx, "v2serviceResource", &resiliencehub.V2ServiceArgs{
    	PermissionModel: &resiliencehub.V2ServicePermissionModelArgs{
    		InvokerRoleName: pulumi.String("string"),
    		CrossAccountRoles: resiliencehub.V2ServicePermissionModelCrossAccountRoleArray{
    			&resiliencehub.V2ServicePermissionModelCrossAccountRoleArgs{
    				CrossAccountRoleArn: pulumi.String("string"),
    				ExternalId:          pulumi.String("string"),
    			},
    		},
    	},
    	Regions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	AssociatedSystems: resiliencehub.V2ServiceAssociatedSystemArray{
    		&resiliencehub.V2ServiceAssociatedSystemArgs{
    			SystemArn: pulumi.String("string"),
    			UserJourneyIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	DependencyDiscovery: pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	KmsKeyId:            pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	PolicyArn:           pulumi.String("string"),
    	Region:              pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "aws_resiliencehub_v2_service" "v2serviceResource" {
      lifecycle {
        create_before_destroy = true
      }
      permission_model = {
        invoker_role_name = "string"
        cross_account_roles = [{
          cross_account_role_arn = "string"
          external_id            = "string"
        }]
      }
      regions = ["string"]
      associated_systems {
        system_arn       = "string"
        user_journey_ids = ["string"]
      }
      dependency_discovery = "string"
      description          = "string"
      kms_key_id           = "string"
      name                 = "string"
      policy_arn           = "string"
      region               = "string"
      tags = {
        "string" = "string"
      }
    }
    
    var v2serviceResource = new V2Service("v2serviceResource", V2ServiceArgs.builder()
        .permissionModel(V2ServicePermissionModelArgs.builder()
            .invokerRoleName("string")
            .crossAccountRoles(V2ServicePermissionModelCrossAccountRoleArgs.builder()
                .crossAccountRoleArn("string")
                .externalId("string")
                .build())
            .build())
        .regions("string")
        .associatedSystems(V2ServiceAssociatedSystemArgs.builder()
            .systemArn("string")
            .userJourneyIds("string")
            .build())
        .dependencyDiscovery("string")
        .description("string")
        .kmsKeyId("string")
        .name("string")
        .policyArn("string")
        .region("string")
        .tags(Map.of("string", "string"))
        .build());
    
    v2service_resource = aws.resiliencehub.V2Service("v2serviceResource",
        permission_model={
            "invoker_role_name": "string",
            "cross_account_roles": [{
                "cross_account_role_arn": "string",
                "external_id": "string",
            }],
        },
        regions=["string"],
        associated_systems=[{
            "system_arn": "string",
            "user_journey_ids": ["string"],
        }],
        dependency_discovery="string",
        description="string",
        kms_key_id="string",
        name="string",
        policy_arn="string",
        region="string",
        tags={
            "string": "string",
        })
    
    const v2serviceResource = new aws.resiliencehub.V2Service("v2serviceResource", {
        permissionModel: {
            invokerRoleName: "string",
            crossAccountRoles: [{
                crossAccountRoleArn: "string",
                externalId: "string",
            }],
        },
        regions: ["string"],
        associatedSystems: [{
            systemArn: "string",
            userJourneyIds: ["string"],
        }],
        dependencyDiscovery: "string",
        description: "string",
        kmsKeyId: "string",
        name: "string",
        policyArn: "string",
        region: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:resiliencehub:V2Service
    properties:
        associatedSystems:
            - systemArn: string
              userJourneyIds:
                - string
        dependencyDiscovery: string
        description: string
        kmsKeyId: string
        name: string
        permissionModel:
            crossAccountRoles:
                - crossAccountRoleArn: string
                  externalId: string
            invokerRoleName: string
        policyArn: string
        region: string
        regions:
            - string
        tags:
            string: string
    

    V2Service 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 V2Service resource accepts the following input properties:

    PermissionModel V2ServicePermissionModel
    Permission model for resource discovery. See permissionModel Block below.
    Regions List<string>

    List of AWS regions where the service operates.

    The following arguments are optional:

    AssociatedSystems List<V2ServiceAssociatedSystem>
    Systems to associate with the service. See associatedSystem Block below.
    DependencyDiscovery string
    Dependency discovery. Valid values: ENABLED, DISABLED.
    Description string
    Description of the service.
    KmsKeyId string
    KMS key ARN.
    Name string
    Name of the service. Changing this value requires creating a new resource.
    PolicyArn string
    ARN of the resilience policy to associate with this service.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    PermissionModel V2ServicePermissionModelArgs
    Permission model for resource discovery. See permissionModel Block below.
    Regions []string

    List of AWS regions where the service operates.

    The following arguments are optional:

    AssociatedSystems []V2ServiceAssociatedSystemArgs
    Systems to associate with the service. See associatedSystem Block below.
    DependencyDiscovery string
    Dependency discovery. Valid values: ENABLED, DISABLED.
    Description string
    Description of the service.
    KmsKeyId string
    KMS key ARN.
    Name string
    Name of the service. Changing this value requires creating a new resource.
    PolicyArn string
    ARN of the resilience policy to associate with this service.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    permission_model object
    Permission model for resource discovery. See permissionModel Block below.
    regions list(string)

    List of AWS regions where the service operates.

    The following arguments are optional:

    associated_systems list(object)
    Systems to associate with the service. See associatedSystem Block below.
    dependency_discovery string
    Dependency discovery. Valid values: ENABLED, DISABLED.
    description string
    Description of the service.
    kms_key_id string
    KMS key ARN.
    name string
    Name of the service. Changing this value requires creating a new resource.
    policy_arn string
    ARN of the resilience policy to associate with this service.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    permissionModel V2ServicePermissionModel
    Permission model for resource discovery. See permissionModel Block below.
    regions List<String>

    List of AWS regions where the service operates.

    The following arguments are optional:

    associatedSystems List<V2ServiceAssociatedSystem>
    Systems to associate with the service. See associatedSystem Block below.
    dependencyDiscovery String
    Dependency discovery. Valid values: ENABLED, DISABLED.
    description String
    Description of the service.
    kmsKeyId String
    KMS key ARN.
    name String
    Name of the service. Changing this value requires creating a new resource.
    policyArn String
    ARN of the resilience policy to associate with this service.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    permissionModel V2ServicePermissionModel
    Permission model for resource discovery. See permissionModel Block below.
    regions string[]

    List of AWS regions where the service operates.

    The following arguments are optional:

    associatedSystems V2ServiceAssociatedSystem[]
    Systems to associate with the service. See associatedSystem Block below.
    dependencyDiscovery string
    Dependency discovery. Valid values: ENABLED, DISABLED.
    description string
    Description of the service.
    kmsKeyId string
    KMS key ARN.
    name string
    Name of the service. Changing this value requires creating a new resource.
    policyArn string
    ARN of the resilience policy to associate with this service.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    permission_model V2ServicePermissionModelArgs
    Permission model for resource discovery. See permissionModel Block below.
    regions Sequence[str]

    List of AWS regions where the service operates.

    The following arguments are optional:

    associated_systems Sequence[V2ServiceAssociatedSystemArgs]
    Systems to associate with the service. See associatedSystem Block below.
    dependency_discovery str
    Dependency discovery. Valid values: ENABLED, DISABLED.
    description str
    Description of the service.
    kms_key_id str
    KMS key ARN.
    name str
    Name of the service. Changing this value requires creating a new resource.
    policy_arn str
    ARN of the resilience policy to associate with this service.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    permissionModel Property Map
    Permission model for resource discovery. See permissionModel Block below.
    regions List<String>

    List of AWS regions where the service operates.

    The following arguments are optional:

    associatedSystems List<Property Map>
    Systems to associate with the service. See associatedSystem Block below.
    dependencyDiscovery String
    Dependency discovery. Valid values: ENABLED, DISABLED.
    description String
    Description of the service.
    kmsKeyId String
    KMS key ARN.
    name String
    Name of the service. Changing this value requires creating a new resource.
    policyArn String
    ARN of the resilience policy to associate with this service.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the V2Service resource produces the following output properties:

    Arn string
    ARN of the service.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the service.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the service.
    id string
    The provider-assigned unique ID for this managed resource.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the service.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the service.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the service.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the service.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing V2Service Resource

    Get an existing V2Service 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>, state?: V2ServiceState, opts?: CustomResourceOptions): V2Service
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            associated_systems: Optional[Sequence[V2ServiceAssociatedSystemArgs]] = None,
            dependency_discovery: Optional[str] = None,
            description: Optional[str] = None,
            kms_key_id: Optional[str] = None,
            name: Optional[str] = None,
            permission_model: Optional[V2ServicePermissionModelArgs] = None,
            policy_arn: Optional[str] = None,
            region: Optional[str] = None,
            regions: Optional[Sequence[str]] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> V2Service
    func GetV2Service(ctx *Context, name string, id IDInput, state *V2ServiceState, opts ...ResourceOption) (*V2Service, error)
    public static V2Service Get(string name, Input<string> id, V2ServiceState? state, CustomResourceOptions? opts = null)
    public static V2Service get(String name, Output<String> id, V2ServiceState state, CustomResourceOptions options)
    resources:  _:    type: aws:resiliencehub:V2Service    get:      id: ${id}
    import {
      to = aws_resiliencehub_v2_service.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the service.
    AssociatedSystems List<V2ServiceAssociatedSystem>
    Systems to associate with the service. See associatedSystem Block below.
    DependencyDiscovery string
    Dependency discovery. Valid values: ENABLED, DISABLED.
    Description string
    Description of the service.
    KmsKeyId string
    KMS key ARN.
    Name string
    Name of the service. Changing this value requires creating a new resource.
    PermissionModel V2ServicePermissionModel
    Permission model for resource discovery. See permissionModel Block below.
    PolicyArn string
    ARN of the resilience policy to associate with this service.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Regions List<string>

    List of AWS regions where the service operates.

    The following arguments are optional:

    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the service.
    AssociatedSystems []V2ServiceAssociatedSystemArgs
    Systems to associate with the service. See associatedSystem Block below.
    DependencyDiscovery string
    Dependency discovery. Valid values: ENABLED, DISABLED.
    Description string
    Description of the service.
    KmsKeyId string
    KMS key ARN.
    Name string
    Name of the service. Changing this value requires creating a new resource.
    PermissionModel V2ServicePermissionModelArgs
    Permission model for resource discovery. See permissionModel Block below.
    PolicyArn string
    ARN of the resilience policy to associate with this service.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Regions []string

    List of AWS regions where the service operates.

    The following arguments are optional:

    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the service.
    associated_systems list(object)
    Systems to associate with the service. See associatedSystem Block below.
    dependency_discovery string
    Dependency discovery. Valid values: ENABLED, DISABLED.
    description string
    Description of the service.
    kms_key_id string
    KMS key ARN.
    name string
    Name of the service. Changing this value requires creating a new resource.
    permission_model object
    Permission model for resource discovery. See permissionModel Block below.
    policy_arn string
    ARN of the resilience policy to associate with this service.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    regions list(string)

    List of AWS regions where the service operates.

    The following arguments are optional:

    tags map(string)
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the service.
    associatedSystems List<V2ServiceAssociatedSystem>
    Systems to associate with the service. See associatedSystem Block below.
    dependencyDiscovery String
    Dependency discovery. Valid values: ENABLED, DISABLED.
    description String
    Description of the service.
    kmsKeyId String
    KMS key ARN.
    name String
    Name of the service. Changing this value requires creating a new resource.
    permissionModel V2ServicePermissionModel
    Permission model for resource discovery. See permissionModel Block below.
    policyArn String
    ARN of the resilience policy to associate with this service.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    regions List<String>

    List of AWS regions where the service operates.

    The following arguments are optional:

    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the service.
    associatedSystems V2ServiceAssociatedSystem[]
    Systems to associate with the service. See associatedSystem Block below.
    dependencyDiscovery string
    Dependency discovery. Valid values: ENABLED, DISABLED.
    description string
    Description of the service.
    kmsKeyId string
    KMS key ARN.
    name string
    Name of the service. Changing this value requires creating a new resource.
    permissionModel V2ServicePermissionModel
    Permission model for resource discovery. See permissionModel Block below.
    policyArn string
    ARN of the resilience policy to associate with this service.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    regions string[]

    List of AWS regions where the service operates.

    The following arguments are optional:

    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the service.
    associated_systems Sequence[V2ServiceAssociatedSystemArgs]
    Systems to associate with the service. See associatedSystem Block below.
    dependency_discovery str
    Dependency discovery. Valid values: ENABLED, DISABLED.
    description str
    Description of the service.
    kms_key_id str
    KMS key ARN.
    name str
    Name of the service. Changing this value requires creating a new resource.
    permission_model V2ServicePermissionModelArgs
    Permission model for resource discovery. See permissionModel Block below.
    policy_arn str
    ARN of the resilience policy to associate with this service.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    regions Sequence[str]

    List of AWS regions where the service operates.

    The following arguments are optional:

    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the service.
    associatedSystems List<Property Map>
    Systems to associate with the service. See associatedSystem Block below.
    dependencyDiscovery String
    Dependency discovery. Valid values: ENABLED, DISABLED.
    description String
    Description of the service.
    kmsKeyId String
    KMS key ARN.
    name String
    Name of the service. Changing this value requires creating a new resource.
    permissionModel Property Map
    Permission model for resource discovery. See permissionModel Block below.
    policyArn String
    ARN of the resilience policy to associate with this service.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    regions List<String>

    List of AWS regions where the service operates.

    The following arguments are optional:

    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Supporting Types

    V2ServiceAssociatedSystem, V2ServiceAssociatedSystemArgs

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

    V2ServicePermissionModel, V2ServicePermissionModelArgs

    InvokerRoleName string
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    CrossAccountRoles List<V2ServicePermissionModelCrossAccountRole>
    Cross-account IAM role. See crossAccountRole Block below.
    InvokerRoleName string
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    CrossAccountRoles []V2ServicePermissionModelCrossAccountRole
    Cross-account IAM role. See crossAccountRole Block below.
    invoker_role_name 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.
    invokerRoleName String
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    crossAccountRoles List<V2ServicePermissionModelCrossAccountRole>
    Cross-account IAM role. See crossAccountRole Block below.
    invokerRoleName string
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    crossAccountRoles V2ServicePermissionModelCrossAccountRole[]
    Cross-account IAM role. See crossAccountRole Block below.
    invoker_role_name str
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    cross_account_roles Sequence[V2ServicePermissionModelCrossAccountRole]
    Cross-account IAM role. See crossAccountRole Block below.
    invokerRoleName String
    Name of the IAM role that Resilience Hub assumes for resource discovery.
    crossAccountRoles List<Property Map>
    Cross-account IAM role. See crossAccountRole Block below.

    V2ServicePermissionModelCrossAccountRole, V2ServicePermissionModelCrossAccountRoleArgs

    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.

    Import

    Identity Schema

    Required

    • arn (String) ARN of the Resilience Hub V2 Service.

    Using pulumi import, import Resilience Hub V2 Service using the arn. For example:

    $ pulumi import aws:resiliencehub/v2Service:V2Service example arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123
    

    To learn more about importing existing cloud resources, see Importing resources.

    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