1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. apigee
  5. Flowhook
Google Cloud Classic v8.5.0 published on Tuesday, Oct 8, 2024 by Pulumi

gcp.apigee.Flowhook

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.5.0 published on Tuesday, Oct 8, 2024 by Pulumi

    Represents a sharedflow attachment to a flowhook point.

    To get more information about Flowhook, see:

    Create Flowhook Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Flowhook(name: string, args: FlowhookArgs, opts?: CustomResourceOptions);
    @overload
    def Flowhook(resource_name: str,
                 args: FlowhookArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Flowhook(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 environment: Optional[str] = None,
                 flow_hook_point: Optional[str] = None,
                 org_id: Optional[str] = None,
                 sharedflow: Optional[str] = None,
                 continue_on_error: Optional[bool] = None,
                 description: Optional[str] = None)
    func NewFlowhook(ctx *Context, name string, args FlowhookArgs, opts ...ResourceOption) (*Flowhook, error)
    public Flowhook(string name, FlowhookArgs args, CustomResourceOptions? opts = null)
    public Flowhook(String name, FlowhookArgs args)
    public Flowhook(String name, FlowhookArgs args, CustomResourceOptions options)
    
    type: gcp:apigee:Flowhook
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FlowhookArgs
    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 FlowhookArgs
    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 FlowhookArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FlowhookArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FlowhookArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var flowhookResource = new Gcp.Apigee.Flowhook("flowhookResource", new()
    {
        Environment = "string",
        FlowHookPoint = "string",
        OrgId = "string",
        Sharedflow = "string",
        ContinueOnError = false,
        Description = "string",
    });
    
    example, err := apigee.NewFlowhook(ctx, "flowhookResource", &apigee.FlowhookArgs{
    	Environment:     pulumi.String("string"),
    	FlowHookPoint:   pulumi.String("string"),
    	OrgId:           pulumi.String("string"),
    	Sharedflow:      pulumi.String("string"),
    	ContinueOnError: pulumi.Bool(false),
    	Description:     pulumi.String("string"),
    })
    
    var flowhookResource = new Flowhook("flowhookResource", FlowhookArgs.builder()
        .environment("string")
        .flowHookPoint("string")
        .orgId("string")
        .sharedflow("string")
        .continueOnError(false)
        .description("string")
        .build());
    
    flowhook_resource = gcp.apigee.Flowhook("flowhookResource",
        environment="string",
        flow_hook_point="string",
        org_id="string",
        sharedflow="string",
        continue_on_error=False,
        description="string")
    
    const flowhookResource = new gcp.apigee.Flowhook("flowhookResource", {
        environment: "string",
        flowHookPoint: "string",
        orgId: "string",
        sharedflow: "string",
        continueOnError: false,
        description: "string",
    });
    
    type: gcp:apigee:Flowhook
    properties:
        continueOnError: false
        description: string
        environment: string
        flowHookPoint: string
        orgId: string
        sharedflow: string
    

    Flowhook Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Flowhook resource accepts the following input properties:

    Environment string
    The resource ID of the environment.
    FlowHookPoint string
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    OrgId string
    The Apigee Organization associated with the environment
    Sharedflow string
    Id of the Sharedflow attaching to a flowhook point.
    ContinueOnError bool
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    Description string
    Description of the flow hook.
    Environment string
    The resource ID of the environment.
    FlowHookPoint string
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    OrgId string
    The Apigee Organization associated with the environment
    Sharedflow string
    Id of the Sharedflow attaching to a flowhook point.
    ContinueOnError bool
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    Description string
    Description of the flow hook.
    environment String
    The resource ID of the environment.
    flowHookPoint String
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    orgId String
    The Apigee Organization associated with the environment
    sharedflow String
    Id of the Sharedflow attaching to a flowhook point.
    continueOnError Boolean
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    description String
    Description of the flow hook.
    environment string
    The resource ID of the environment.
    flowHookPoint string
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    orgId string
    The Apigee Organization associated with the environment
    sharedflow string
    Id of the Sharedflow attaching to a flowhook point.
    continueOnError boolean
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    description string
    Description of the flow hook.
    environment str
    The resource ID of the environment.
    flow_hook_point str
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    org_id str
    The Apigee Organization associated with the environment
    sharedflow str
    Id of the Sharedflow attaching to a flowhook point.
    continue_on_error bool
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    description str
    Description of the flow hook.
    environment String
    The resource ID of the environment.
    flowHookPoint String
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    orgId String
    The Apigee Organization associated with the environment
    sharedflow String
    Id of the Sharedflow attaching to a flowhook point.
    continueOnError Boolean
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    description String
    Description of the flow hook.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Flowhook resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Flowhook Resource

    Get an existing Flowhook 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>, state?: FlowhookState, opts?: CustomResourceOptions): Flowhook
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            continue_on_error: Optional[bool] = None,
            description: Optional[str] = None,
            environment: Optional[str] = None,
            flow_hook_point: Optional[str] = None,
            org_id: Optional[str] = None,
            sharedflow: Optional[str] = None) -> Flowhook
    func GetFlowhook(ctx *Context, name string, id IDInput, state *FlowhookState, opts ...ResourceOption) (*Flowhook, error)
    public static Flowhook Get(string name, Input<string> id, FlowhookState? state, CustomResourceOptions? opts = null)
    public static Flowhook get(String name, Output<String> id, FlowhookState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ContinueOnError bool
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    Description string
    Description of the flow hook.
    Environment string
    The resource ID of the environment.
    FlowHookPoint string
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    OrgId string
    The Apigee Organization associated with the environment
    Sharedflow string
    Id of the Sharedflow attaching to a flowhook point.
    ContinueOnError bool
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    Description string
    Description of the flow hook.
    Environment string
    The resource ID of the environment.
    FlowHookPoint string
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    OrgId string
    The Apigee Organization associated with the environment
    Sharedflow string
    Id of the Sharedflow attaching to a flowhook point.
    continueOnError Boolean
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    description String
    Description of the flow hook.
    environment String
    The resource ID of the environment.
    flowHookPoint String
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    orgId String
    The Apigee Organization associated with the environment
    sharedflow String
    Id of the Sharedflow attaching to a flowhook point.
    continueOnError boolean
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    description string
    Description of the flow hook.
    environment string
    The resource ID of the environment.
    flowHookPoint string
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    orgId string
    The Apigee Organization associated with the environment
    sharedflow string
    Id of the Sharedflow attaching to a flowhook point.
    continue_on_error bool
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    description str
    Description of the flow hook.
    environment str
    The resource ID of the environment.
    flow_hook_point str
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    org_id str
    The Apigee Organization associated with the environment
    sharedflow str
    Id of the Sharedflow attaching to a flowhook point.
    continueOnError Boolean
    Flag that specifies whether execution should continue if the flow hook throws an exception. Set to true to continue execution. Set to false to stop execution if the flow hook throws an exception. Defaults to true.
    description String
    Description of the flow hook.
    environment String
    The resource ID of the environment.
    flowHookPoint String
    Where in the API call flow the flow hook is invoked. Must be one of PreProxyFlowHook, PostProxyFlowHook, PreTargetFlowHook, or PostTargetFlowHook.
    orgId String
    The Apigee Organization associated with the environment
    sharedflow String
    Id of the Sharedflow attaching to a flowhook point.

    Import

    Flowhook can be imported using any of these accepted formats:

    • organizations/{{org_id}}/environments/{{environment}}/flowhooks/{{flow_hook_point}}

    • {{org_id}}/{{environment}}/{{flow_hook_point}}

    When using the pulumi import command, Flowhook can be imported using one of the formats above. For example:

    $ pulumi import gcp:apigee/flowhook:Flowhook default organizations/{{org_id}}/environments/{{environment}}/flowhooks/{{flow_hook_point}}
    
    $ pulumi import gcp:apigee/flowhook:Flowhook default {{org_id}}/{{environment}}/{{flow_hook_point}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v8.5.0 published on Tuesday, Oct 8, 2024 by Pulumi