published on Thursday, Sep 10, 2026 by Pulumi
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:
- Permission
Model V2ServicePermission Model - Permission model for resource discovery. See
permissionModelBlock below. - Regions List<string>
List of AWS regions where the service operates.
The following arguments are optional:
- Associated
Systems List<V2ServiceAssociated System> - Systems to associate with the service. See
associatedSystemBlock below. - Dependency
Discovery string - Dependency discovery. Valid values:
ENABLED,DISABLED. - Description string
- Description of the service.
- Kms
Key stringId - 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.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Permission
Model V2ServicePermission Model Args - Permission model for resource discovery. See
permissionModelBlock below. - Regions []string
List of AWS regions where the service operates.
The following arguments are optional:
- Associated
Systems []V2ServiceAssociated System Args - Systems to associate with the service. See
associatedSystemBlock below. - Dependency
Discovery string - Dependency discovery. Valid values:
ENABLED,DISABLED. - Description string
- Description of the service.
- Kms
Key stringId - 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.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- permission_
model object - Permission model for resource discovery. See
permissionModelBlock 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
associatedSystemBlock below. - dependency_
discovery string - Dependency discovery. Valid values:
ENABLED,DISABLED. - description string
- Description of the service.
- kms_
key_ stringid - 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.
- map(string)
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- permission
Model V2ServicePermission Model - Permission model for resource discovery. See
permissionModelBlock below. - regions List<String>
List of AWS regions where the service operates.
The following arguments are optional:
- associated
Systems List<V2ServiceAssociated System> - Systems to associate with the service. See
associatedSystemBlock below. - dependency
Discovery String - Dependency discovery. Valid values:
ENABLED,DISABLED. - description String
- Description of the service.
- kms
Key StringId - 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.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- permission
Model V2ServicePermission Model - Permission model for resource discovery. See
permissionModelBlock below. - regions string[]
List of AWS regions where the service operates.
The following arguments are optional:
- associated
Systems V2ServiceAssociated System[] - Systems to associate with the service. See
associatedSystemBlock below. - dependency
Discovery string - Dependency discovery. Valid values:
ENABLED,DISABLED. - description string
- Description of the service.
- kms
Key stringId - 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.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- permission_
model V2ServicePermission Model Args - Permission model for resource discovery. See
permissionModelBlock below. - regions Sequence[str]
List of AWS regions where the service operates.
The following arguments are optional:
- associated_
systems Sequence[V2ServiceAssociated System Args] - Systems to associate with the service. See
associatedSystemBlock below. - dependency_
discovery str - Dependency discovery. Valid values:
ENABLED,DISABLED. - description str
- Description of the service.
- kms_
key_ strid - 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.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- permission
Model Property Map - Permission model for resource discovery. See
permissionModelBlock below. - regions List<String>
List of AWS regions where the service operates.
The following arguments are optional:
- associated
Systems List<Property Map> - Systems to associate with the service. See
associatedSystemBlock below. - dependency
Discovery String - Dependency discovery. Valid values:
ENABLED,DISABLED. - description String
- Description of the service.
- kms
Key StringId - 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.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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:
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) -> V2Servicefunc 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.
- Arn string
- ARN of the service.
- Associated
Systems List<V2ServiceAssociated System> - Systems to associate with the service. See
associatedSystemBlock below. - Dependency
Discovery string - Dependency discovery. Valid values:
ENABLED,DISABLED. - Description string
- Description of the service.
- Kms
Key stringId - KMS key ARN.
- Name string
- Name of the service. Changing this value requires creating a new resource.
- Permission
Model V2ServicePermission Model - Permission model for resource discovery. See
permissionModelBlock 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:
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- Arn string
- ARN of the service.
- Associated
Systems []V2ServiceAssociated System Args - Systems to associate with the service. See
associatedSystemBlock below. - Dependency
Discovery string - Dependency discovery. Valid values:
ENABLED,DISABLED. - Description string
- Description of the service.
- Kms
Key stringId - KMS key ARN.
- Name string
- Name of the service. Changing this value requires creating a new resource.
- Permission
Model V2ServicePermission Model Args - Permission model for resource discovery. See
permissionModelBlock 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 []string
List of AWS regions where the service operates.
The following arguments are optional:
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the service.
- associated_
systems list(object) - Systems to associate with the service. See
associatedSystemBlock below. - dependency_
discovery string - Dependency discovery. Valid values:
ENABLED,DISABLED. - description string
- Description of the service.
- kms_
key_ stringid - 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
permissionModelBlock 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:
- map(string)
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the service.
- associated
Systems List<V2ServiceAssociated System> - Systems to associate with the service. See
associatedSystemBlock below. - dependency
Discovery String - Dependency discovery. Valid values:
ENABLED,DISABLED. - description String
- Description of the service.
- kms
Key StringId - KMS key ARN.
- name String
- Name of the service. Changing this value requires creating a new resource.
- permission
Model V2ServicePermission Model - Permission model for resource discovery. See
permissionModelBlock 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:
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the service.
- associated
Systems V2ServiceAssociated System[] - Systems to associate with the service. See
associatedSystemBlock below. - dependency
Discovery string - Dependency discovery. Valid values:
ENABLED,DISABLED. - description string
- Description of the service.
- kms
Key stringId - KMS key ARN.
- name string
- Name of the service. Changing this value requires creating a new resource.
- permission
Model V2ServicePermission Model - Permission model for resource discovery. See
permissionModelBlock 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 string[]
List of AWS regions where the service operates.
The following arguments are optional:
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn str
- ARN of the service.
- associated_
systems Sequence[V2ServiceAssociated System Args] - Systems to associate with the service. See
associatedSystemBlock below. - dependency_
discovery str - Dependency discovery. Valid values:
ENABLED,DISABLED. - description str
- Description of the service.
- kms_
key_ strid - KMS key ARN.
- name str
- Name of the service. Changing this value requires creating a new resource.
- permission_
model V2ServicePermission Model Args - Permission model for resource discovery. See
permissionModelBlock 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:
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the service.
- associated
Systems List<Property Map> - Systems to associate with the service. See
associatedSystemBlock below. - dependency
Discovery String - Dependency discovery. Valid values:
ENABLED,DISABLED. - description String
- Description of the service.
- kms
Key StringId - KMS key ARN.
- name String
- Name of the service. Changing this value requires creating a new resource.
- permission
Model Property Map - Permission model for resource discovery. See
permissionModelBlock 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:
- Map<String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
Supporting Types
V2ServiceAssociatedSystem, V2ServiceAssociatedSystemArgs
- System
Arn string - ARN of the system to associate with the service.
- User
Journey List<string>Ids - 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 []stringIds - 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_ list(string)ids - 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 List<String>Ids - 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 string[]Ids - 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_ Sequence[str]ids - 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 List<String>Ids - List of user journey identifiers that associate the system with the service.
V2ServicePermissionModel, V2ServicePermissionModelArgs
- Invoker
Role stringName - Name of the IAM role that Resilience Hub assumes for resource discovery.
- Cross
Account List<V2ServiceRoles Permission Model Cross Account Role> - Cross-account IAM role. See
crossAccountRoleBlock below.
- Invoker
Role stringName - Name of the IAM role that Resilience Hub assumes for resource discovery.
- Cross
Account []V2ServiceRoles Permission Model Cross Account Role - Cross-account IAM role. See
crossAccountRoleBlock below.
- invoker_
role_ stringname - Name of the IAM role that Resilience Hub assumes for resource discovery.
- cross_
account_ list(object)roles - Cross-account IAM role. See
crossAccountRoleBlock below.
- invoker
Role StringName - Name of the IAM role that Resilience Hub assumes for resource discovery.
- cross
Account List<V2ServiceRoles Permission Model Cross Account Role> - Cross-account IAM role. See
crossAccountRoleBlock below.
- invoker
Role stringName - Name of the IAM role that Resilience Hub assumes for resource discovery.
- cross
Account V2ServiceRoles Permission Model Cross Account Role[] - Cross-account IAM role. See
crossAccountRoleBlock below.
- invoker_
role_ strname - Name of the IAM role that Resilience Hub assumes for resource discovery.
- cross_
account_ Sequence[V2Serviceroles Permission Model Cross Account Role] - Cross-account IAM role. See
crossAccountRoleBlock below.
- invoker
Role StringName - Name of the IAM role that Resilience Hub assumes for resource discovery.
- cross
Account List<Property Map>Roles - Cross-account IAM role. See
crossAccountRoleBlock below.
V2ServicePermissionModelCrossAccountRole, V2ServicePermissionModelCrossAccountRoleArgs
- Cross
Account stringRole Arn - ARN of the IAM Role for the profile.
- External
Id string - External ID used for assuming the cross-account role.
- Cross
Account stringRole Arn - ARN of the IAM Role for the profile.
- External
Id string - External ID used for assuming the cross-account role.
- cross_
account_ stringrole_ arn - ARN of the IAM Role for the profile.
- external_
id string - External ID used for assuming the cross-account role.
- cross
Account StringRole Arn - ARN of the IAM Role for the profile.
- external
Id String - External ID used for assuming the cross-account role.
- cross
Account stringRole Arn - ARN of the IAM Role for the profile.
- external
Id string - External ID used for assuming the cross-account role.
- cross_
account_ strrole_ arn - ARN of the IAM Role for the profile.
- external_
id str - External ID used for assuming the cross-account role.
- cross
Account StringRole Arn - ARN of the IAM Role for the profile.
- external
Id 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
awsTerraform Provider.
published on Thursday, Sep 10, 2026 by Pulumi