We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
Creates a service function within a Resilience Hub service.
Create ServiceFunction Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceFunction(name: string, args: ServiceFunctionArgs, opts?: CustomResourceOptions);@overload
def ServiceFunction(resource_name: str,
args: ServiceFunctionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceFunction(resource_name: str,
opts: Optional[ResourceOptions] = None,
criticality: Optional[ServiceFunctionCriticality] = None,
service_arn: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)func NewServiceFunction(ctx *Context, name string, args ServiceFunctionArgs, opts ...ResourceOption) (*ServiceFunction, error)public ServiceFunction(string name, ServiceFunctionArgs args, CustomResourceOptions? opts = null)
public ServiceFunction(String name, ServiceFunctionArgs args)
public ServiceFunction(String name, ServiceFunctionArgs args, CustomResourceOptions options)
type: aws-native:resiliencehubv2:ServiceFunction
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_resiliencehubv2_service_function" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ServiceFunctionArgs
- 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 ServiceFunctionArgs
- 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 ServiceFunctionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceFunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceFunctionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ServiceFunction 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 ServiceFunction resource accepts the following input properties:
- Criticality
Pulumi.
Aws Native. Resilience Hub V2. Service Function Criticality - The criticality of the service function.
- Service
Arn string - The ARN of the parent service.
- Description string
- The description of the service function.
- Name string
- The name of the service function.
- Criticality
Service
Function Criticality - The criticality of the service function.
- Service
Arn string - The ARN of the parent service.
- Description string
- The description of the service function.
- Name string
- The name of the service function.
- criticality "PRIMARY" | "SUPPLEMENTAL"
- The criticality of the service function.
- service_
arn string - The ARN of the parent service.
- description string
- The description of the service function.
- name string
- The name of the service function.
- criticality
Service
Function Criticality - The criticality of the service function.
- service
Arn String - The ARN of the parent service.
- description String
- The description of the service function.
- name String
- The name of the service function.
- criticality
Service
Function Criticality - The criticality of the service function.
- service
Arn string - The ARN of the parent service.
- description string
- The description of the service function.
- name string
- The name of the service function.
- criticality
Service
Function Criticality - The criticality of the service function.
- service_
arn str - The ARN of the parent service.
- description str
- The description of the service function.
- name str
- The name of the service function.
- criticality "PRIMARY" | "SUPPLEMENTAL"
- The criticality of the service function.
- service
Arn String - The ARN of the parent service.
- description String
- The description of the service function.
- name String
- The name of the service function.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceFunction resource produces the following output properties:
- Created
At string - The timestamp when the service function was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Count int - The number of resources associated with this function.
- Service
Function stringId - The server-generated service function ID.
- Source
Pulumi.
Aws Native. Resilience Hub V2. Service Function Source - The source of the service function.
- Updated
At string - The timestamp when the service function was last updated.
- Created
At string - The timestamp when the service function was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Count int - The number of resources associated with this function.
- Service
Function stringId - The server-generated service function ID.
- Source
Service
Function Source - The source of the service function.
- Updated
At string - The timestamp when the service function was last updated.
- created_
at string - The timestamp when the service function was created.
- id string
- The provider-assigned unique ID for this managed resource.
- resource_
count number - The number of resources associated with this function.
- service_
function_ stringid - The server-generated service function ID.
- source "AI_GENERATED" | "USER"
- The source of the service function.
- updated_
at string - The timestamp when the service function was last updated.
- created
At String - The timestamp when the service function was created.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Count Integer - The number of resources associated with this function.
- service
Function StringId - The server-generated service function ID.
- source
Service
Function Source - The source of the service function.
- updated
At String - The timestamp when the service function was last updated.
- created
At string - The timestamp when the service function was created.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Count number - The number of resources associated with this function.
- service
Function stringId - The server-generated service function ID.
- source
Service
Function Source - The source of the service function.
- updated
At string - The timestamp when the service function was last updated.
- created_
at str - The timestamp when the service function was created.
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
count int - The number of resources associated with this function.
- service_
function_ strid - The server-generated service function ID.
- source
Service
Function Source - The source of the service function.
- updated_
at str - The timestamp when the service function was last updated.
- created
At String - The timestamp when the service function was created.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Count Number - The number of resources associated with this function.
- service
Function StringId - The server-generated service function ID.
- source "AI_GENERATED" | "USER"
- The source of the service function.
- updated
At String - The timestamp when the service function was last updated.
Look up Existing ServiceFunction Resource
Get an existing ServiceFunction 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>, opts?: CustomResourceOptions): ServiceFunction@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> ServiceFunctionfunc GetServiceFunction(ctx *Context, name string, id IDInput, state *ServiceFunctionState, opts ...ResourceOption) (*ServiceFunction, error)public static ServiceFunction Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static ServiceFunction get(String name, Output<String> id, CustomResourceOptions options)resources: existingServiceFunction: type: aws-native:resiliencehubv2:ServiceFunction get: id: ${id}import {
to = aws-native_resiliencehubv2_service_function.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state ServiceFunctionState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
ServiceFunctionCriticality
The criticality of the service function.
| Name | Value |
|---|---|
| Primary | PRIMARY |
| Supplemental | SUPPLEMENTAL |
| Name | Value |
|---|---|
| Service | PRIMARY |
| Service | SUPPLEMENTAL |
| Value |
|---|
PRIMARY |
SUPPLEMENTAL |
| Name | Value |
|---|---|
| Primary | PRIMARY |
| Supplemental | SUPPLEMENTAL |
| Name | Value |
|---|---|
| Primary | PRIMARY |
| Supplemental | SUPPLEMENTAL |
| Name | Value |
|---|---|
| PRIMARY | PRIMARY |
| SUPPLEMENTAL | SUPPLEMENTAL |
| Value |
|---|
PRIMARY |
SUPPLEMENTAL |
ServiceFunctionSource
The source of the service function.
| Name | Value |
|---|---|
| Ai | AI_GENERATED |
| User | USER |
| Name | Value |
|---|---|
| Service | AI_GENERATED |
| Service | USER |
| Value |
|---|
AI_GENERATED |
USER |
| Name | Value |
|---|---|
| Ai | AI_GENERATED |
| User | USER |
| Name | Value |
|---|---|
| Ai | AI_GENERATED |
| User | USER |
| Name | Value |
|---|---|
| AI_GENERATED | AI_GENERATED |
| USER | USER |
| Value |
|---|
AI_GENERATED |
USER |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi