1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. resiliencehubv2
  6. ServiceFunction

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
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.AwsNative.ResilienceHubV2.ServiceFunctionCriticality
    The criticality of the service function.
    ServiceArn string
    The ARN of the parent service.
    Description string
    The description of the service function.
    Name string
    The name of the service function.
    Criticality ServiceFunctionCriticality
    The criticality of the service function.
    ServiceArn 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 ServiceFunctionCriticality
    The criticality of the service function.
    serviceArn String
    The ARN of the parent service.
    description String
    The description of the service function.
    name String
    The name of the service function.
    criticality ServiceFunctionCriticality
    The criticality of the service function.
    serviceArn string
    The ARN of the parent service.
    description string
    The description of the service function.
    name string
    The name of the service function.
    criticality ServiceFunctionCriticality
    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.
    serviceArn 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:

    CreatedAt string
    The timestamp when the service function was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceCount int
    The number of resources associated with this function.
    ServiceFunctionId string
    The server-generated service function ID.
    Source Pulumi.AwsNative.ResilienceHubV2.ServiceFunctionSource
    The source of the service function.
    UpdatedAt string
    The timestamp when the service function was last updated.
    CreatedAt string
    The timestamp when the service function was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceCount int
    The number of resources associated with this function.
    ServiceFunctionId string
    The server-generated service function ID.
    Source ServiceFunctionSource
    The source of the service function.
    UpdatedAt 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_id string
    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.
    createdAt String
    The timestamp when the service function was created.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceCount Integer
    The number of resources associated with this function.
    serviceFunctionId String
    The server-generated service function ID.
    source ServiceFunctionSource
    The source of the service function.
    updatedAt String
    The timestamp when the service function was last updated.
    createdAt string
    The timestamp when the service function was created.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceCount number
    The number of resources associated with this function.
    serviceFunctionId string
    The server-generated service function ID.
    source ServiceFunctionSource
    The source of the service function.
    updatedAt 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_id str
    The server-generated service function ID.
    source ServiceFunctionSource
    The source of the service function.
    updated_at str
    The timestamp when the service function was last updated.
    createdAt String
    The timestamp when the service function was created.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceCount Number
    The number of resources associated with this function.
    serviceFunctionId String
    The server-generated service function ID.
    source "AI_GENERATED" | "USER"
    The source of the service function.
    updatedAt 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) -> ServiceFunction
    func 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.

    NameValue
    PrimaryPRIMARY
    SupplementalSUPPLEMENTAL
    NameValue
    ServiceFunctionCriticalityPrimaryPRIMARY
    ServiceFunctionCriticalitySupplementalSUPPLEMENTAL
    Value
    PRIMARY
    SUPPLEMENTAL
    NameValue
    PrimaryPRIMARY
    SupplementalSUPPLEMENTAL
    NameValue
    PrimaryPRIMARY
    SupplementalSUPPLEMENTAL
    NameValue
    PRIMARYPRIMARY
    SUPPLEMENTALSUPPLEMENTAL
    Value
    PRIMARY
    SUPPLEMENTAL

    ServiceFunctionSource

    The source of the service function.

    NameValue
    AiGeneratedAI_GENERATED
    UserUSER
    NameValue
    ServiceFunctionSourceAiGeneratedAI_GENERATED
    ServiceFunctionSourceUserUSER
    Value
    AI_GENERATED
    USER
    NameValue
    AiGeneratedAI_GENERATED
    UserUSER
    NameValue
    AiGeneratedAI_GENERATED
    UserUSER
    NameValue
    AI_GENERATEDAI_GENERATED
    USERUSER
    Value
    AI_GENERATED
    USER

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial