bitbucket 2.46.0 published on Monday, Apr 14, 2025 by drfaust92
bitbucket.getHookTypes
Explore with Pulumi AI
bitbucket 2.46.0 published on Monday, Apr 14, 2025 by drfaust92
Provides a way to fetch data of hook types.
OAuth2 Scopes: none
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bitbucket from "@pulumi/bitbucket";
const example = bitbucket.getHookTypes({
subjectType: "workspace",
});
import pulumi
import pulumi_bitbucket as bitbucket
example = bitbucket.get_hook_types(subject_type="workspace")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitbucket/v2/bitbucket"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bitbucket.GetHookTypes(ctx, &bitbucket.GetHookTypesArgs{
SubjectType: "workspace",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitbucket = Pulumi.Bitbucket;
return await Deployment.RunAsync(() =>
{
var example = Bitbucket.GetHookTypes.Invoke(new()
{
SubjectType = "workspace",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitbucket.BitbucketFunctions;
import com.pulumi.bitbucket.inputs.GetHookTypesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = BitbucketFunctions.getHookTypes(GetHookTypesArgs.builder()
.subjectType("workspace")
.build());
}
}
variables:
example:
fn::invoke:
function: bitbucket:getHookTypes
arguments:
subjectType: workspace
Using getHookTypes
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 getHookTypes(args: GetHookTypesArgs, opts?: InvokeOptions): Promise<GetHookTypesResult>
function getHookTypesOutput(args: GetHookTypesOutputArgs, opts?: InvokeOptions): Output<GetHookTypesResult>
def get_hook_types(id: Optional[str] = None,
subject_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHookTypesResult
def get_hook_types_output(id: Optional[pulumi.Input[str]] = None,
subject_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHookTypesResult]
func GetHookTypes(ctx *Context, args *GetHookTypesArgs, opts ...InvokeOption) (*GetHookTypesResult, error)
func GetHookTypesOutput(ctx *Context, args *GetHookTypesOutputArgs, opts ...InvokeOption) GetHookTypesResultOutput
> Note: This function is named GetHookTypes
in the Go SDK.
public static class GetHookTypes
{
public static Task<GetHookTypesResult> InvokeAsync(GetHookTypesArgs args, InvokeOptions? opts = null)
public static Output<GetHookTypesResult> Invoke(GetHookTypesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHookTypesResult> getHookTypes(GetHookTypesArgs args, InvokeOptions options)
public static Output<GetHookTypesResult> getHookTypes(GetHookTypesArgs args, InvokeOptions options)
fn::invoke:
function: bitbucket:index/getHookTypes:getHookTypes
arguments:
# arguments dictionary
The following arguments are supported:
- Subject
Type string - A resource or subject type. Valid values are
workspace
,user
,repository
,team
. - Id string
- Subject
Type string - A resource or subject type. Valid values are
workspace
,user
,repository
,team
. - Id string
- subject
Type String - A resource or subject type. Valid values are
workspace
,user
,repository
,team
. - id String
- subject
Type string - A resource or subject type. Valid values are
workspace
,user
,repository
,team
. - id string
- subject_
type str - A resource or subject type. Valid values are
workspace
,user
,repository
,team
. - id str
- subject
Type String - A resource or subject type. Valid values are
workspace
,user
,repository
,team
. - id String
getHookTypes Result
The following output properties are available:
- Hook
Types List<GetHook Types Hook Type> - A Set of Hook Event Types. See Hook Types below.
- Id string
- Subject
Type string
- Hook
Types []GetHook Types Hook Type - A Set of Hook Event Types. See Hook Types below.
- Id string
- Subject
Type string
- hook
Types List<GetHook Types Hook Type> - A Set of Hook Event Types. See Hook Types below.
- id String
- subject
Type String
- hook
Types GetHook Types Hook Type[] - A Set of Hook Event Types. See Hook Types below.
- id string
- subject
Type string
- hook_
types Sequence[GetHook Types Hook Type] - A Set of Hook Event Types. See Hook Types below.
- id str
- subject_
type str
- hook
Types List<Property Map> - A Set of Hook Event Types. See Hook Types below.
- id String
- subject
Type String
Supporting Types
GetHookTypesHookType
- Category string
- The category this event belongs to.
- Description string
- More detailed description of the webhook event type.
- Event string
- The event identifier.
- Label string
- Summary of the webhook event type.
- Category string
- The category this event belongs to.
- Description string
- More detailed description of the webhook event type.
- Event string
- The event identifier.
- Label string
- Summary of the webhook event type.
- category String
- The category this event belongs to.
- description String
- More detailed description of the webhook event type.
- event String
- The event identifier.
- label String
- Summary of the webhook event type.
- category string
- The category this event belongs to.
- description string
- More detailed description of the webhook event type.
- event string
- The event identifier.
- label string
- Summary of the webhook event type.
- category str
- The category this event belongs to.
- description str
- More detailed description of the webhook event type.
- event str
- The event identifier.
- label str
- Summary of the webhook event type.
- category String
- The category this event belongs to.
- description String
- More detailed description of the webhook event type.
- event String
- The event identifier.
- label String
- Summary of the webhook event type.
Package Details
- Repository
- bitbucket drfaust92/terraform-provider-bitbucket
- License
- Notes
- This Pulumi package is based on the
bitbucket
Terraform Provider.
bitbucket 2.46.0 published on Monday, Apr 14, 2025 by drfaust92