1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. GitxWebhook
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

harness.platform.GitxWebhook

Explore with Pulumi AI

harness logo
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

    Resource for creating a Harness pipeline.

    Create GitxWebhook Resource

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

    Constructor syntax

    new GitxWebhook(name: string, args: GitxWebhookArgs, opts?: CustomResourceOptions);
    @overload
    def GitxWebhook(resource_name: str,
                    args: GitxWebhookArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def GitxWebhook(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    connector_ref: Optional[str] = None,
                    identifier: Optional[str] = None,
                    repo_name: Optional[str] = None,
                    description: Optional[str] = None,
                    folder_paths: Optional[Sequence[str]] = None,
                    is_enabled: Optional[bool] = None,
                    name: Optional[str] = None,
                    org_id: Optional[str] = None,
                    project_id: Optional[str] = None,
                    tags: Optional[Sequence[str]] = None)
    func NewGitxWebhook(ctx *Context, name string, args GitxWebhookArgs, opts ...ResourceOption) (*GitxWebhook, error)
    public GitxWebhook(string name, GitxWebhookArgs args, CustomResourceOptions? opts = null)
    public GitxWebhook(String name, GitxWebhookArgs args)
    public GitxWebhook(String name, GitxWebhookArgs args, CustomResourceOptions options)
    
    type: harness:platform:GitxWebhook
    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 GitxWebhookArgs
    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 GitxWebhookArgs
    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 GitxWebhookArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GitxWebhookArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GitxWebhookArgs
    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 gitxWebhookResource = new Harness.Platform.GitxWebhook("gitxWebhookResource", new()
    {
        ConnectorRef = "string",
        Identifier = "string",
        RepoName = "string",
        Description = "string",
        FolderPaths = new[]
        {
            "string",
        },
        IsEnabled = false,
        Name = "string",
        OrgId = "string",
        ProjectId = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := platform.NewGitxWebhook(ctx, "gitxWebhookResource", &platform.GitxWebhookArgs{
    	ConnectorRef: pulumi.String("string"),
    	Identifier:   pulumi.String("string"),
    	RepoName:     pulumi.String("string"),
    	Description:  pulumi.String("string"),
    	FolderPaths: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IsEnabled: pulumi.Bool(false),
    	Name:      pulumi.String("string"),
    	OrgId:     pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var gitxWebhookResource = new GitxWebhook("gitxWebhookResource", GitxWebhookArgs.builder()
        .connectorRef("string")
        .identifier("string")
        .repoName("string")
        .description("string")
        .folderPaths("string")
        .isEnabled(false)
        .name("string")
        .orgId("string")
        .projectId("string")
        .tags("string")
        .build());
    
    gitx_webhook_resource = harness.platform.GitxWebhook("gitxWebhookResource",
        connector_ref="string",
        identifier="string",
        repo_name="string",
        description="string",
        folder_paths=["string"],
        is_enabled=False,
        name="string",
        org_id="string",
        project_id="string",
        tags=["string"])
    
    const gitxWebhookResource = new harness.platform.GitxWebhook("gitxWebhookResource", {
        connectorRef: "string",
        identifier: "string",
        repoName: "string",
        description: "string",
        folderPaths: ["string"],
        isEnabled: false,
        name: "string",
        orgId: "string",
        projectId: "string",
        tags: ["string"],
    });
    
    type: harness:platform:GitxWebhook
    properties:
        connectorRef: string
        description: string
        folderPaths:
            - string
        identifier: string
        isEnabled: false
        name: string
        orgId: string
        projectId: string
        repoName: string
        tags:
            - string
    

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

    ConnectorRef string
    ConnectorRef to be used to create Gitx webhook.
    Identifier string
    Unique identifier of the resource.
    RepoName string
    Repo Identifier for Gitx webhook.
    Description string
    Description of the resource.
    FolderPaths List<string>
    Folder Paths
    IsEnabled bool
    Flag to enable the webhook
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags List<string>
    Tags to associate with the resource.
    ConnectorRef string
    ConnectorRef to be used to create Gitx webhook.
    Identifier string
    Unique identifier of the resource.
    RepoName string
    Repo Identifier for Gitx webhook.
    Description string
    Description of the resource.
    FolderPaths []string
    Folder Paths
    IsEnabled bool
    Flag to enable the webhook
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags []string
    Tags to associate with the resource.
    connectorRef String
    ConnectorRef to be used to create Gitx webhook.
    identifier String
    Unique identifier of the resource.
    repoName String
    Repo Identifier for Gitx webhook.
    description String
    Description of the resource.
    folderPaths List<String>
    Folder Paths
    isEnabled Boolean
    Flag to enable the webhook
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.
    connectorRef string
    ConnectorRef to be used to create Gitx webhook.
    identifier string
    Unique identifier of the resource.
    repoName string
    Repo Identifier for Gitx webhook.
    description string
    Description of the resource.
    folderPaths string[]
    Folder Paths
    isEnabled boolean
    Flag to enable the webhook
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    tags string[]
    Tags to associate with the resource.
    connector_ref str
    ConnectorRef to be used to create Gitx webhook.
    identifier str
    Unique identifier of the resource.
    repo_name str
    Repo Identifier for Gitx webhook.
    description str
    Description of the resource.
    folder_paths Sequence[str]
    Folder Paths
    is_enabled bool
    Flag to enable the webhook
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    tags Sequence[str]
    Tags to associate with the resource.
    connectorRef String
    ConnectorRef to be used to create Gitx webhook.
    identifier String
    Unique identifier of the resource.
    repoName String
    Repo Identifier for Gitx webhook.
    description String
    Description of the resource.
    folderPaths List<String>
    Folder Paths
    isEnabled Boolean
    Flag to enable the webhook
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GitxWebhook 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 GitxWebhook Resource

    Get an existing GitxWebhook 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?: GitxWebhookState, opts?: CustomResourceOptions): GitxWebhook
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            connector_ref: Optional[str] = None,
            description: Optional[str] = None,
            folder_paths: Optional[Sequence[str]] = None,
            identifier: Optional[str] = None,
            is_enabled: Optional[bool] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            repo_name: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> GitxWebhook
    func GetGitxWebhook(ctx *Context, name string, id IDInput, state *GitxWebhookState, opts ...ResourceOption) (*GitxWebhook, error)
    public static GitxWebhook Get(string name, Input<string> id, GitxWebhookState? state, CustomResourceOptions? opts = null)
    public static GitxWebhook get(String name, Output<String> id, GitxWebhookState 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:
    ConnectorRef string
    ConnectorRef to be used to create Gitx webhook.
    Description string
    Description of the resource.
    FolderPaths List<string>
    Folder Paths
    Identifier string
    Unique identifier of the resource.
    IsEnabled bool
    Flag to enable the webhook
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    RepoName string
    Repo Identifier for Gitx webhook.
    Tags List<string>
    Tags to associate with the resource.
    ConnectorRef string
    ConnectorRef to be used to create Gitx webhook.
    Description string
    Description of the resource.
    FolderPaths []string
    Folder Paths
    Identifier string
    Unique identifier of the resource.
    IsEnabled bool
    Flag to enable the webhook
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    RepoName string
    Repo Identifier for Gitx webhook.
    Tags []string
    Tags to associate with the resource.
    connectorRef String
    ConnectorRef to be used to create Gitx webhook.
    description String
    Description of the resource.
    folderPaths List<String>
    Folder Paths
    identifier String
    Unique identifier of the resource.
    isEnabled Boolean
    Flag to enable the webhook
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    repoName String
    Repo Identifier for Gitx webhook.
    tags List<String>
    Tags to associate with the resource.
    connectorRef string
    ConnectorRef to be used to create Gitx webhook.
    description string
    Description of the resource.
    folderPaths string[]
    Folder Paths
    identifier string
    Unique identifier of the resource.
    isEnabled boolean
    Flag to enable the webhook
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    repoName string
    Repo Identifier for Gitx webhook.
    tags string[]
    Tags to associate with the resource.
    connector_ref str
    ConnectorRef to be used to create Gitx webhook.
    description str
    Description of the resource.
    folder_paths Sequence[str]
    Folder Paths
    identifier str
    Unique identifier of the resource.
    is_enabled bool
    Flag to enable the webhook
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    repo_name str
    Repo Identifier for Gitx webhook.
    tags Sequence[str]
    Tags to associate with the resource.
    connectorRef String
    ConnectorRef to be used to create Gitx webhook.
    description String
    Description of the resource.
    folderPaths List<String>
    Folder Paths
    identifier String
    Unique identifier of the resource.
    isEnabled Boolean
    Flag to enable the webhook
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    repoName String
    Repo Identifier for Gitx webhook.
    tags List<String>
    Tags to associate with the resource.

    Import

    Import an Account level Webhook

    $ pulumi import harness:platform/gitxWebhook:GitxWebhook example <webhook_identifier>
    

    Import an Org level Webhook

    $ pulumi import harness:platform/gitxWebhook:GitxWebhook example <webhook_identifier>/<org_id>/
    

    Import a Project level Webhook

    $ pulumi import harness:platform/gitxWebhook:GitxWebhook example <webhook_identifier>/<org_id>/<project_id>
    

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

    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.3.2 published on Monday, Sep 16, 2024 by Pulumi