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 Function.
A service function represents a technical subset of the service topology that represents a specific workflow within a service. For example, an authentication service might have separate service functions for “SSO sign-in” and “Registration”.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.resiliencehub.V2ServiceFunction("example", {
serviceArn: exampleAwsResiliencehubv2Service.arn,
name: "example-function",
criticality: "PRIMARY",
});
import pulumi
import pulumi_aws as aws
example = aws.resiliencehub.V2ServiceFunction("example",
service_arn=example_aws_resiliencehubv2_service["arn"],
name="example-function",
criticality="PRIMARY")
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.NewV2ServiceFunction(ctx, "example", &resiliencehub.V2ServiceFunctionArgs{
ServiceArn: pulumi.Any(exampleAwsResiliencehubv2Service.Arn),
Name: pulumi.String("example-function"),
Criticality: pulumi.String("PRIMARY"),
})
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.V2ServiceFunction("example", new()
{
ServiceArn = exampleAwsResiliencehubv2Service.Arn,
Name = "example-function",
Criticality = "PRIMARY",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.resiliencehub.V2ServiceFunction;
import com.pulumi.aws.resiliencehub.V2ServiceFunctionArgs;
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 V2ServiceFunction("example", V2ServiceFunctionArgs.builder()
.serviceArn(exampleAwsResiliencehubv2Service.arn())
.name("example-function")
.criticality("PRIMARY")
.build());
}
}
resources:
example:
type: aws:resiliencehub:V2ServiceFunction
properties:
serviceArn: ${exampleAwsResiliencehubv2Service.arn}
name: example-function
criticality: PRIMARY
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_resiliencehub_v2servicefunction" "example" {
service_arn = exampleAwsResiliencehubv2Service.arn
name = "example-function"
criticality = "PRIMARY"
}
With Description
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.resiliencehub.V2ServiceFunction("example", {
serviceArn: exampleAwsResiliencehubv2Service.arn,
name: "payment-processing",
description: "Handles payment transaction processing",
criticality: "PRIMARY",
});
import pulumi
import pulumi_aws as aws
example = aws.resiliencehub.V2ServiceFunction("example",
service_arn=example_aws_resiliencehubv2_service["arn"],
name="payment-processing",
description="Handles payment transaction processing",
criticality="PRIMARY")
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.NewV2ServiceFunction(ctx, "example", &resiliencehub.V2ServiceFunctionArgs{
ServiceArn: pulumi.Any(exampleAwsResiliencehubv2Service.Arn),
Name: pulumi.String("payment-processing"),
Description: pulumi.String("Handles payment transaction processing"),
Criticality: pulumi.String("PRIMARY"),
})
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.V2ServiceFunction("example", new()
{
ServiceArn = exampleAwsResiliencehubv2Service.Arn,
Name = "payment-processing",
Description = "Handles payment transaction processing",
Criticality = "PRIMARY",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.resiliencehub.V2ServiceFunction;
import com.pulumi.aws.resiliencehub.V2ServiceFunctionArgs;
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 V2ServiceFunction("example", V2ServiceFunctionArgs.builder()
.serviceArn(exampleAwsResiliencehubv2Service.arn())
.name("payment-processing")
.description("Handles payment transaction processing")
.criticality("PRIMARY")
.build());
}
}
resources:
example:
type: aws:resiliencehub:V2ServiceFunction
properties:
serviceArn: ${exampleAwsResiliencehubv2Service.arn}
name: payment-processing
description: Handles payment transaction processing
criticality: PRIMARY
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_resiliencehub_v2servicefunction" "example" {
service_arn = exampleAwsResiliencehubv2Service.arn
name = "payment-processing"
description = "Handles payment transaction processing"
criticality = "PRIMARY"
}
Create V2ServiceFunction Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new V2ServiceFunction(name: string, args: V2ServiceFunctionArgs, opts?: CustomResourceOptions);@overload
def V2ServiceFunction(resource_name: str,
args: V2ServiceFunctionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def V2ServiceFunction(resource_name: str,
opts: Optional[ResourceOptions] = None,
criticality: Optional[str] = None,
service_arn: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None)func NewV2ServiceFunction(ctx *Context, name string, args V2ServiceFunctionArgs, opts ...ResourceOption) (*V2ServiceFunction, error)public V2ServiceFunction(string name, V2ServiceFunctionArgs args, CustomResourceOptions? opts = null)
public V2ServiceFunction(String name, V2ServiceFunctionArgs args)
public V2ServiceFunction(String name, V2ServiceFunctionArgs args, CustomResourceOptions options)
type: aws:resiliencehub:V2ServiceFunction
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_resiliencehub_v2_service_function" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args V2ServiceFunctionArgs
- 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 V2ServiceFunctionArgs
- 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 V2ServiceFunctionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args V2ServiceFunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args V2ServiceFunctionArgs
- 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 v2serviceFunctionResource = new Aws.ResilienceHub.V2ServiceFunction("v2serviceFunctionResource", new()
{
Criticality = "string",
ServiceArn = "string",
Description = "string",
Name = "string",
Region = "string",
});
example, err := resiliencehub.NewV2ServiceFunction(ctx, "v2serviceFunctionResource", &resiliencehub.V2ServiceFunctionArgs{
Criticality: pulumi.String("string"),
ServiceArn: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
})
resource "aws_resiliencehub_v2_service_function" "v2serviceFunctionResource" {
lifecycle {
create_before_destroy = true
}
criticality = "string"
service_arn = "string"
description = "string"
name = "string"
region = "string"
}
var v2serviceFunctionResource = new V2ServiceFunction("v2serviceFunctionResource", V2ServiceFunctionArgs.builder()
.criticality("string")
.serviceArn("string")
.description("string")
.name("string")
.region("string")
.build());
v2service_function_resource = aws.resiliencehub.V2ServiceFunction("v2serviceFunctionResource",
criticality="string",
service_arn="string",
description="string",
name="string",
region="string")
const v2serviceFunctionResource = new aws.resiliencehub.V2ServiceFunction("v2serviceFunctionResource", {
criticality: "string",
serviceArn: "string",
description: "string",
name: "string",
region: "string",
});
type: aws:resiliencehub:V2ServiceFunction
properties:
criticality: string
description: string
name: string
region: string
serviceArn: string
V2ServiceFunction 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 V2ServiceFunction resource accepts the following input properties:
- Criticality string
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - Service
Arn string ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- Description string
- Description of the service function.
- Name string
- Name of the service function.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Criticality string
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - Service
Arn string ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- Description string
- Description of the service function.
- Name string
- Name of the service function.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- criticality string
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - service_
arn string ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- description string
- Description of the service function.
- name string
- Name of the service function.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- criticality String
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - service
Arn String ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- description String
- Description of the service function.
- name String
- Name of the service function.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- criticality string
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - service
Arn string ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- description string
- Description of the service function.
- name string
- Name of the service function.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- criticality str
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - service_
arn str ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- description str
- Description of the service function.
- name str
- Name of the service function.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- criticality String
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - service
Arn String ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- description String
- Description of the service function.
- name String
- Name of the service function.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the V2ServiceFunction resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Function stringId - Unique identifier of the service function.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Function stringId - Unique identifier of the service function.
- id string
- The provider-assigned unique ID for this managed resource.
- service_
function_ stringid - Unique identifier of the service function.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Function StringId - Unique identifier of the service function.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Function stringId - Unique identifier of the service function.
- id str
- The provider-assigned unique ID for this managed resource.
- service_
function_ strid - Unique identifier of the service function.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Function StringId - Unique identifier of the service function.
Look up Existing V2ServiceFunction Resource
Get an existing V2ServiceFunction 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?: V2ServiceFunctionState, opts?: CustomResourceOptions): V2ServiceFunction@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
criticality: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
service_arn: Optional[str] = None,
service_function_id: Optional[str] = None) -> V2ServiceFunctionfunc GetV2ServiceFunction(ctx *Context, name string, id IDInput, state *V2ServiceFunctionState, opts ...ResourceOption) (*V2ServiceFunction, error)public static V2ServiceFunction Get(string name, Input<string> id, V2ServiceFunctionState? state, CustomResourceOptions? opts = null)public static V2ServiceFunction get(String name, Output<String> id, V2ServiceFunctionState state, CustomResourceOptions options)resources: _: type: aws:resiliencehub:V2ServiceFunction get: id: ${id}import {
to = aws_resiliencehub_v2_service_function.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.
- Criticality string
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - Description string
- Description of the service function.
- Name string
- Name of the service function.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Service
Arn string ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- Service
Function stringId - Unique identifier of the service function.
- Criticality string
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - Description string
- Description of the service function.
- Name string
- Name of the service function.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Service
Arn string ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- Service
Function stringId - Unique identifier of the service function.
- criticality string
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - description string
- Description of the service function.
- name string
- Name of the service function.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- service_
arn string ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- service_
function_ stringid - Unique identifier of the service function.
- criticality String
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - description String
- Description of the service function.
- name String
- Name of the service function.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- service
Arn String ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- service
Function StringId - Unique identifier of the service function.
- criticality string
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - description string
- Description of the service function.
- name string
- Name of the service function.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- service
Arn string ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- service
Function stringId - Unique identifier of the service function.
- criticality str
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - description str
- Description of the service function.
- name str
- Name of the service function.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- service_
arn str ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- service_
function_ strid - Unique identifier of the service function.
- criticality String
- Criticality level of the service function. Valid values:
PRIMARY,SUPPLEMENTAL. - description String
- Description of the service function.
- name String
- Name of the service function.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- service
Arn String ARN of the service this function belongs to. Changing this value requires creating a new resource.
The following arguments are optional:
- service
Function StringId - Unique identifier of the service function.
Import
Identity Schema
Required
serviceArn(String) ARN of the service this service function belongs to.serviceFunctionId(String) Unique identifier of the service function.
Optional
accountId(String) AWS Account where this resource is managed.region(String) Region where this resource is managed.
Using pulumi import, import Resilience Hub V2 Service Function using the serviceArn and serviceFunctionId separated by a comma (,). For example:
$ pulumi import aws:resiliencehub/v2ServiceFunction:V2ServiceFunction example arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123,12345678-1234-1234-1234-123456789012
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