We recommend new projects start with resources from the AWS provider.
published on Monday, Jun 15, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Jun 15, 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_servicefunction" "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.
Supporting Types
ServiceFunctionCriticality, ServiceFunctionCriticalityArgs
- Primary
PRIMARY- Supplemental
SUPPLEMENTAL
- Service
Function Criticality Primary PRIMARY- Service
Function Criticality Supplemental SUPPLEMENTAL
- "PRIMARY"
PRIMARY- "SUPPLEMENTAL"
SUPPLEMENTAL
- Primary
PRIMARY- Supplemental
SUPPLEMENTAL
- Primary
PRIMARY- Supplemental
SUPPLEMENTAL
- PRIMARY
PRIMARY- SUPPLEMENTAL
SUPPLEMENTAL
- "PRIMARY"
PRIMARY- "SUPPLEMENTAL"
SUPPLEMENTAL
ServiceFunctionSource, ServiceFunctionSourceArgs
- Ai
Generated AI_GENERATED- User
USER
- Service
Function Source Ai Generated AI_GENERATED- Service
Function Source User USER
- "AI_GENERATED"
AI_GENERATED- "USER"
USER
- Ai
Generated AI_GENERATED- User
USER
- Ai
Generated AI_GENERATED- User
USER
- AI_GENERATED
AI_GENERATED- USER
USER
- "AI_GENERATED"
AI_GENERATED- "USER"
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 Monday, Jun 15, 2026 by Pulumi