1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. RepoWebhook
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

harness.platform.RepoWebhook

Explore with Pulumi AI

harness logo
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

    Resource for creating a Harness Repo Webhook.

    Create RepoWebhook Resource

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

    Constructor syntax

    new RepoWebhook(name: string, args: RepoWebhookArgs, opts?: CustomResourceOptions);
    @overload
    def RepoWebhook(resource_name: str,
                    args: RepoWebhookArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def RepoWebhook(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    enabled: Optional[bool] = None,
                    identifier: Optional[str] = None,
                    insecure: Optional[bool] = None,
                    repo_identifier: Optional[str] = None,
                    url: Optional[str] = None,
                    description: Optional[str] = None,
                    org_id: Optional[str] = None,
                    project_id: Optional[str] = None,
                    secret: Optional[str] = None,
                    triggers: Optional[Sequence[str]] = None)
    func NewRepoWebhook(ctx *Context, name string, args RepoWebhookArgs, opts ...ResourceOption) (*RepoWebhook, error)
    public RepoWebhook(string name, RepoWebhookArgs args, CustomResourceOptions? opts = null)
    public RepoWebhook(String name, RepoWebhookArgs args)
    public RepoWebhook(String name, RepoWebhookArgs args, CustomResourceOptions options)
    
    type: harness:platform:RepoWebhook
    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 RepoWebhookArgs
    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 RepoWebhookArgs
    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 RepoWebhookArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RepoWebhookArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RepoWebhookArgs
    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 repoWebhookResource = new Harness.Platform.RepoWebhook("repoWebhookResource", new()
    {
        Enabled = false,
        Identifier = "string",
        Insecure = false,
        RepoIdentifier = "string",
        Url = "string",
        Description = "string",
        OrgId = "string",
        ProjectId = "string",
        Secret = "string",
        Triggers = new[]
        {
            "string",
        },
    });
    
    example, err := platform.NewRepoWebhook(ctx, "repoWebhookResource", &platform.RepoWebhookArgs{
    	Enabled:        pulumi.Bool(false),
    	Identifier:     pulumi.String("string"),
    	Insecure:       pulumi.Bool(false),
    	RepoIdentifier: pulumi.String("string"),
    	Url:            pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	OrgId:          pulumi.String("string"),
    	ProjectId:      pulumi.String("string"),
    	Secret:         pulumi.String("string"),
    	Triggers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var repoWebhookResource = new RepoWebhook("repoWebhookResource", RepoWebhookArgs.builder()
        .enabled(false)
        .identifier("string")
        .insecure(false)
        .repoIdentifier("string")
        .url("string")
        .description("string")
        .orgId("string")
        .projectId("string")
        .secret("string")
        .triggers("string")
        .build());
    
    repo_webhook_resource = harness.platform.RepoWebhook("repoWebhookResource",
        enabled=False,
        identifier="string",
        insecure=False,
        repo_identifier="string",
        url="string",
        description="string",
        org_id="string",
        project_id="string",
        secret="string",
        triggers=["string"])
    
    const repoWebhookResource = new harness.platform.RepoWebhook("repoWebhookResource", {
        enabled: false,
        identifier: "string",
        insecure: false,
        repoIdentifier: "string",
        url: "string",
        description: "string",
        orgId: "string",
        projectId: "string",
        secret: "string",
        triggers: ["string"],
    });
    
    type: harness:platform:RepoWebhook
    properties:
        description: string
        enabled: false
        identifier: string
        insecure: false
        orgId: string
        projectId: string
        repoIdentifier: string
        secret: string
        triggers:
            - string
        url: string
    

    RepoWebhook 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 RepoWebhook resource accepts the following input properties:

    Enabled bool
    Webhook enabled.
    Identifier string
    Identifier of the webhook.
    Insecure bool
    Allow insecure connections for provided webhook URL.
    RepoIdentifier string
    Identifier of the repository.
    Url string
    URL that's called by the webhook.
    Description string
    Description of the webhook.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Secret string
    Webhook secret which will be used to sign the webhook payload.
    Triggers List<string>
    List of triggers of the webhook (keep empty for all triggers).
    Enabled bool
    Webhook enabled.
    Identifier string
    Identifier of the webhook.
    Insecure bool
    Allow insecure connections for provided webhook URL.
    RepoIdentifier string
    Identifier of the repository.
    Url string
    URL that's called by the webhook.
    Description string
    Description of the webhook.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Secret string
    Webhook secret which will be used to sign the webhook payload.
    Triggers []string
    List of triggers of the webhook (keep empty for all triggers).
    enabled Boolean
    Webhook enabled.
    identifier String
    Identifier of the webhook.
    insecure Boolean
    Allow insecure connections for provided webhook URL.
    repoIdentifier String
    Identifier of the repository.
    url String
    URL that's called by the webhook.
    description String
    Description of the webhook.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    secret String
    Webhook secret which will be used to sign the webhook payload.
    triggers List<String>
    List of triggers of the webhook (keep empty for all triggers).
    enabled boolean
    Webhook enabled.
    identifier string
    Identifier of the webhook.
    insecure boolean
    Allow insecure connections for provided webhook URL.
    repoIdentifier string
    Identifier of the repository.
    url string
    URL that's called by the webhook.
    description string
    Description of the webhook.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    secret string
    Webhook secret which will be used to sign the webhook payload.
    triggers string[]
    List of triggers of the webhook (keep empty for all triggers).
    enabled bool
    Webhook enabled.
    identifier str
    Identifier of the webhook.
    insecure bool
    Allow insecure connections for provided webhook URL.
    repo_identifier str
    Identifier of the repository.
    url str
    URL that's called by the webhook.
    description str
    Description of the webhook.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    secret str
    Webhook secret which will be used to sign the webhook payload.
    triggers Sequence[str]
    List of triggers of the webhook (keep empty for all triggers).
    enabled Boolean
    Webhook enabled.
    identifier String
    Identifier of the webhook.
    insecure Boolean
    Allow insecure connections for provided webhook URL.
    repoIdentifier String
    Identifier of the repository.
    url String
    URL that's called by the webhook.
    description String
    Description of the webhook.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    secret String
    Webhook secret which will be used to sign the webhook payload.
    triggers List<String>
    List of triggers of the webhook (keep empty for all triggers).

    Outputs

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

    Created int
    Timestamp when the webhook was created.
    CreatedBy int
    ID of the user who created the webhook.
    HasSecret bool
    Created webhook has secret encoding.
    Id string
    The provider-assigned unique ID for this managed resource.
    Created int
    Timestamp when the webhook was created.
    CreatedBy int
    ID of the user who created the webhook.
    HasSecret bool
    Created webhook has secret encoding.
    Id string
    The provider-assigned unique ID for this managed resource.
    created Integer
    Timestamp when the webhook was created.
    createdBy Integer
    ID of the user who created the webhook.
    hasSecret Boolean
    Created webhook has secret encoding.
    id String
    The provider-assigned unique ID for this managed resource.
    created number
    Timestamp when the webhook was created.
    createdBy number
    ID of the user who created the webhook.
    hasSecret boolean
    Created webhook has secret encoding.
    id string
    The provider-assigned unique ID for this managed resource.
    created int
    Timestamp when the webhook was created.
    created_by int
    ID of the user who created the webhook.
    has_secret bool
    Created webhook has secret encoding.
    id str
    The provider-assigned unique ID for this managed resource.
    created Number
    Timestamp when the webhook was created.
    createdBy Number
    ID of the user who created the webhook.
    hasSecret Boolean
    Created webhook has secret encoding.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing RepoWebhook Resource

    Get an existing RepoWebhook 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?: RepoWebhookState, opts?: CustomResourceOptions): RepoWebhook
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created: Optional[int] = None,
            created_by: Optional[int] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            has_secret: Optional[bool] = None,
            identifier: Optional[str] = None,
            insecure: Optional[bool] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            repo_identifier: Optional[str] = None,
            secret: Optional[str] = None,
            triggers: Optional[Sequence[str]] = None,
            url: Optional[str] = None) -> RepoWebhook
    func GetRepoWebhook(ctx *Context, name string, id IDInput, state *RepoWebhookState, opts ...ResourceOption) (*RepoWebhook, error)
    public static RepoWebhook Get(string name, Input<string> id, RepoWebhookState? state, CustomResourceOptions? opts = null)
    public static RepoWebhook get(String name, Output<String> id, RepoWebhookState 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:
    Created int
    Timestamp when the webhook was created.
    CreatedBy int
    ID of the user who created the webhook.
    Description string
    Description of the webhook.
    Enabled bool
    Webhook enabled.
    HasSecret bool
    Created webhook has secret encoding.
    Identifier string
    Identifier of the webhook.
    Insecure bool
    Allow insecure connections for provided webhook URL.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    RepoIdentifier string
    Identifier of the repository.
    Secret string
    Webhook secret which will be used to sign the webhook payload.
    Triggers List<string>
    List of triggers of the webhook (keep empty for all triggers).
    Url string
    URL that's called by the webhook.
    Created int
    Timestamp when the webhook was created.
    CreatedBy int
    ID of the user who created the webhook.
    Description string
    Description of the webhook.
    Enabled bool
    Webhook enabled.
    HasSecret bool
    Created webhook has secret encoding.
    Identifier string
    Identifier of the webhook.
    Insecure bool
    Allow insecure connections for provided webhook URL.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    RepoIdentifier string
    Identifier of the repository.
    Secret string
    Webhook secret which will be used to sign the webhook payload.
    Triggers []string
    List of triggers of the webhook (keep empty for all triggers).
    Url string
    URL that's called by the webhook.
    created Integer
    Timestamp when the webhook was created.
    createdBy Integer
    ID of the user who created the webhook.
    description String
    Description of the webhook.
    enabled Boolean
    Webhook enabled.
    hasSecret Boolean
    Created webhook has secret encoding.
    identifier String
    Identifier of the webhook.
    insecure Boolean
    Allow insecure connections for provided webhook URL.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    repoIdentifier String
    Identifier of the repository.
    secret String
    Webhook secret which will be used to sign the webhook payload.
    triggers List<String>
    List of triggers of the webhook (keep empty for all triggers).
    url String
    URL that's called by the webhook.
    created number
    Timestamp when the webhook was created.
    createdBy number
    ID of the user who created the webhook.
    description string
    Description of the webhook.
    enabled boolean
    Webhook enabled.
    hasSecret boolean
    Created webhook has secret encoding.
    identifier string
    Identifier of the webhook.
    insecure boolean
    Allow insecure connections for provided webhook URL.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    repoIdentifier string
    Identifier of the repository.
    secret string
    Webhook secret which will be used to sign the webhook payload.
    triggers string[]
    List of triggers of the webhook (keep empty for all triggers).
    url string
    URL that's called by the webhook.
    created int
    Timestamp when the webhook was created.
    created_by int
    ID of the user who created the webhook.
    description str
    Description of the webhook.
    enabled bool
    Webhook enabled.
    has_secret bool
    Created webhook has secret encoding.
    identifier str
    Identifier of the webhook.
    insecure bool
    Allow insecure connections for provided webhook URL.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    repo_identifier str
    Identifier of the repository.
    secret str
    Webhook secret which will be used to sign the webhook payload.
    triggers Sequence[str]
    List of triggers of the webhook (keep empty for all triggers).
    url str
    URL that's called by the webhook.
    created Number
    Timestamp when the webhook was created.
    createdBy Number
    ID of the user who created the webhook.
    description String
    Description of the webhook.
    enabled Boolean
    Webhook enabled.
    hasSecret Boolean
    Created webhook has secret encoding.
    identifier String
    Identifier of the webhook.
    insecure Boolean
    Allow insecure connections for provided webhook URL.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    repoIdentifier String
    Identifier of the repository.
    secret String
    Webhook secret which will be used to sign the webhook payload.
    triggers List<String>
    List of triggers of the webhook (keep empty for all triggers).
    url String
    URL that's called by the webhook.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi