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

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.

    Using getServiceFunction

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getServiceFunction(args: GetServiceFunctionArgs, opts?: InvokeOptions): Promise<GetServiceFunctionResult>
    function getServiceFunctionOutput(args: GetServiceFunctionOutputArgs, opts?: InvokeOptions): Output<GetServiceFunctionResult>
    def get_service_function(service_arn: Optional[str] = None,
                             service_function_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetServiceFunctionResult
    def get_service_function_output(service_arn: pulumi.Input[Optional[str]] = None,
                             service_function_id: pulumi.Input[Optional[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetServiceFunctionResult]
    func LookupServiceFunction(ctx *Context, args *LookupServiceFunctionArgs, opts ...InvokeOption) (*LookupServiceFunctionResult, error)
    func LookupServiceFunctionOutput(ctx *Context, args *LookupServiceFunctionOutputArgs, opts ...InvokeOption) LookupServiceFunctionResultOutput

    > Note: This function is named LookupServiceFunction in the Go SDK.

    public static class GetServiceFunction 
    {
        public static Task<GetServiceFunctionResult> InvokeAsync(GetServiceFunctionArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceFunctionResult> Invoke(GetServiceFunctionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceFunctionResult> getServiceFunction(GetServiceFunctionArgs args, InvokeOptions options)
    public static Output<GetServiceFunctionResult> getServiceFunction(GetServiceFunctionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:resiliencehubv2:getServiceFunction
      arguments:
        # arguments dictionary
    data "aws-native_resiliencehubv2_getservicefunction" "name" {
        # arguments
    }

    The following arguments are supported:

    ServiceArn string
    The ARN of the parent service.
    ServiceFunctionId string
    The server-generated service function ID.
    ServiceArn string
    The ARN of the parent service.
    ServiceFunctionId string
    The server-generated service function ID.
    service_arn string
    The ARN of the parent service.
    service_function_id string
    The server-generated service function ID.
    serviceArn String
    The ARN of the parent service.
    serviceFunctionId String
    The server-generated service function ID.
    serviceArn string
    The ARN of the parent service.
    serviceFunctionId string
    The server-generated service function ID.
    service_arn str
    The ARN of the parent service.
    service_function_id str
    The server-generated service function ID.
    serviceArn String
    The ARN of the parent service.
    serviceFunctionId String
    The server-generated service function ID.

    getServiceFunction Result

    The following output properties are available:

    CreatedAt string
    The timestamp when the service function was created.
    Criticality Pulumi.AwsNative.ResilienceHubV2.ServiceFunctionCriticality
    The criticality of the service function.
    Description string
    The description of the service function.
    Name string
    The name of the service function.
    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.
    Criticality ServiceFunctionCriticality
    The criticality of the service function.
    Description string
    The description of the service function.
    Name string
    The name of the service function.
    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.
    criticality "PRIMARY" | "SUPPLEMENTAL"
    The criticality of the service function.
    description string
    The description of the service function.
    name string
    The name of the service function.
    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.
    criticality ServiceFunctionCriticality
    The criticality of the service function.
    description String
    The description of the service function.
    name String
    The name of the service function.
    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.
    criticality ServiceFunctionCriticality
    The criticality of the service function.
    description string
    The description of the service function.
    name string
    The name of the service function.
    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.
    criticality ServiceFunctionCriticality
    The criticality of the service function.
    description str
    The description of the service function.
    name str
    The name of the service function.
    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.
    criticality "PRIMARY" | "SUPPLEMENTAL"
    The criticality of the service function.
    description String
    The description of the service function.
    name String
    The name of the service function.
    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

    ServiceFunctionSource

    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