1. Packages
  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.69.0
published on Monday, Jun 15, 2026 by Pulumi
aws-native logo

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

Viewing docs for AWS Cloud Control v1.69.0
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.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.

    Supporting Types

    ServiceFunctionCriticality, ServiceFunctionCriticalityArgs

    Primary
    PRIMARY
    Supplemental
    SUPPLEMENTAL
    ServiceFunctionCriticalityPrimary
    PRIMARY
    ServiceFunctionCriticalitySupplemental
    SUPPLEMENTAL
    "PRIMARY"
    PRIMARY
    "SUPPLEMENTAL"
    SUPPLEMENTAL
    Primary
    PRIMARY
    Supplemental
    SUPPLEMENTAL
    Primary
    PRIMARY
    Supplemental
    SUPPLEMENTAL
    PRIMARY
    PRIMARY
    SUPPLEMENTAL
    SUPPLEMENTAL
    "PRIMARY"
    PRIMARY
    "SUPPLEMENTAL"
    SUPPLEMENTAL

    ServiceFunctionSource, ServiceFunctionSourceArgs

    AiGenerated
    AI_GENERATED
    User
    USER
    ServiceFunctionSourceAiGenerated
    AI_GENERATED
    ServiceFunctionSourceUser
    USER
    "AI_GENERATED"
    AI_GENERATED
    "USER"
    USER
    AiGenerated
    AI_GENERATED
    User
    USER
    AiGenerated
    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
    aws-native logo

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

    Viewing docs for AWS Cloud Control v1.69.0
    published on Monday, Jun 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial