import * as pulumi from "@pulumi/pulumi"; /** * Resource for managing an AWS Resilience Hub V2 Service Function. * * A service function represents a technical subset of the service topology that represents a specific workflow within a service. For example, an authentication service might have separate service functions for "SSO sign-in" and "Registration". * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.resiliencehub.V2ServiceFunction("example", { * serviceArn: exampleAwsResiliencehubv2Service.arn, * name: "example-function", * criticality: "PRIMARY", * }); * ``` * * ### With Description * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.resiliencehub.V2ServiceFunction("example", { * serviceArn: exampleAwsResiliencehubv2Service.arn, * name: "payment-processing", * description: "Handles payment transaction processing", * criticality: "PRIMARY", * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `serviceArn` (String) ARN of the service this service function belongs to. * * `serviceFunctionId` (String) Unique identifier of the service function. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import Resilience Hub V2 Service Function using the `serviceArn` and `serviceFunctionId` separated by a comma (`,`). For example: * * ```sh * $ pulumi import aws:resiliencehub/v2ServiceFunction:V2ServiceFunction example arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123,12345678-1234-1234-1234-123456789012 * ``` */ export declare class V2ServiceFunction extends pulumi.CustomResource { /** * Get an existing V2ServiceFunction resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: V2ServiceFunctionState, opts?: pulumi.CustomResourceOptions): V2ServiceFunction; /** * Returns true if the given object is an instance of V2ServiceFunction. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is V2ServiceFunction; /** * Criticality level of the service function. Valid values: `PRIMARY`, `SUPPLEMENTAL`. */ readonly criticality: pulumi.Output; /** * Description of the service function. */ readonly description: pulumi.Output; /** * Name of the service function. */ readonly name: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * ARN of the service this function belongs to. Changing this value requires creating a new resource. * * The following arguments are optional: */ readonly serviceArn: pulumi.Output; /** * Unique identifier of the service function. */ readonly serviceFunctionId: pulumi.Output; /** * Create a V2ServiceFunction resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: V2ServiceFunctionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering V2ServiceFunction resources. */ export interface V2ServiceFunctionState { /** * Criticality level of the service function. Valid values: `PRIMARY`, `SUPPLEMENTAL`. */ criticality?: pulumi.Input; /** * Description of the service function. */ description?: pulumi.Input; /** * Name of the service function. */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * ARN of the service this function belongs to. Changing this value requires creating a new resource. * * The following arguments are optional: */ serviceArn?: pulumi.Input; /** * Unique identifier of the service function. */ serviceFunctionId?: pulumi.Input; } /** * The set of arguments for constructing a V2ServiceFunction resource. */ export interface V2ServiceFunctionArgs { /** * Criticality level of the service function. Valid values: `PRIMARY`, `SUPPLEMENTAL`. */ criticality: pulumi.Input; /** * Description of the service function. */ description?: pulumi.Input; /** * Name of the service function. */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * ARN of the service this function belongs to. Changing this value requires creating a new resource. * * The following arguments are optional: */ serviceArn: pulumi.Input; } //# sourceMappingURL=v2serviceFunction.d.ts.map