1. Packages
  2. Harness Provider
  3. API Docs
  4. chaos
  5. HubSync
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

harness.chaos.HubSync

Explore with Pulumi AI

harness logo
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

    Resource for syncing a Harness Chaos Hub

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.chaos.HubSync("example", {
        orgId: "<org_id>",
        projectId: "<project_id>",
        hubId: "<hub_id>",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.chaos.HubSync("example",
        org_id="<org_id>",
        project_id="<project_id>",
        hub_id="<hub_id>")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/chaos"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := chaos.NewHubSync(ctx, "example", &chaos.HubSyncArgs{
    			OrgId:     pulumi.String("<org_id>"),
    			ProjectId: pulumi.String("<project_id>"),
    			HubId:     pulumi.String("<hub_id>"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Chaos.HubSync("example", new()
        {
            OrgId = "<org_id>",
            ProjectId = "<project_id>",
            HubId = "<hub_id>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.chaos.HubSync;
    import com.pulumi.harness.chaos.HubSyncArgs;
    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) {
            var example = new HubSync("example", HubSyncArgs.builder()
                .orgId("<org_id>")
                .projectId("<project_id>")
                .hubId("<hub_id>")
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:chaos:HubSync
        properties:
          orgId: <org_id>
          projectId: <project_id>
          hubId: <hub_id>
    

    Create HubSync Resource

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

    Constructor syntax

    new HubSync(name: string, args: HubSyncArgs, opts?: CustomResourceOptions);
    @overload
    def HubSync(resource_name: str,
                args: HubSyncArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def HubSync(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                hub_id: Optional[str] = None,
                org_id: Optional[str] = None,
                project_id: Optional[str] = None)
    func NewHubSync(ctx *Context, name string, args HubSyncArgs, opts ...ResourceOption) (*HubSync, error)
    public HubSync(string name, HubSyncArgs args, CustomResourceOptions? opts = null)
    public HubSync(String name, HubSyncArgs args)
    public HubSync(String name, HubSyncArgs args, CustomResourceOptions options)
    
    type: harness:chaos:HubSync
    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 HubSyncArgs
    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 HubSyncArgs
    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 HubSyncArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HubSyncArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HubSyncArgs
    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 hubSyncResource = new Harness.Chaos.HubSync("hubSyncResource", new()
    {
        HubId = "string",
        OrgId = "string",
        ProjectId = "string",
    });
    
    example, err := chaos.NewHubSync(ctx, "hubSyncResource", &chaos.HubSyncArgs{
    	HubId:     pulumi.String("string"),
    	OrgId:     pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    })
    
    var hubSyncResource = new HubSync("hubSyncResource", HubSyncArgs.builder()
        .hubId("string")
        .orgId("string")
        .projectId("string")
        .build());
    
    hub_sync_resource = harness.chaos.HubSync("hubSyncResource",
        hub_id="string",
        org_id="string",
        project_id="string")
    
    const hubSyncResource = new harness.chaos.HubSync("hubSyncResource", {
        hubId: "string",
        orgId: "string",
        projectId: "string",
    });
    
    type: harness:chaos:HubSync
    properties:
        hubId: string
        orgId: string
        projectId: string
    

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

    HubId string
    The ID of the Chaos Hub to sync
    OrgId string
    ProjectId string
    HubId string
    The ID of the Chaos Hub to sync
    OrgId string
    ProjectId string
    hubId String
    The ID of the Chaos Hub to sync
    orgId String
    projectId String
    hubId string
    The ID of the Chaos Hub to sync
    orgId string
    projectId string
    hub_id str
    The ID of the Chaos Hub to sync
    org_id str
    project_id str
    hubId String
    The ID of the Chaos Hub to sync
    orgId String
    projectId String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    LastSyncedAt string
    Timestamp of the last sync
    Id string
    The provider-assigned unique ID for this managed resource.
    LastSyncedAt string
    Timestamp of the last sync
    id String
    The provider-assigned unique ID for this managed resource.
    lastSyncedAt String
    Timestamp of the last sync
    id string
    The provider-assigned unique ID for this managed resource.
    lastSyncedAt string
    Timestamp of the last sync
    id str
    The provider-assigned unique ID for this managed resource.
    last_synced_at str
    Timestamp of the last sync
    id String
    The provider-assigned unique ID for this managed resource.
    lastSyncedAt String
    Timestamp of the last sync

    Look up Existing HubSync Resource

    Get an existing HubSync 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?: HubSyncState, opts?: CustomResourceOptions): HubSync
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            hub_id: Optional[str] = None,
            last_synced_at: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None) -> HubSync
    func GetHubSync(ctx *Context, name string, id IDInput, state *HubSyncState, opts ...ResourceOption) (*HubSync, error)
    public static HubSync Get(string name, Input<string> id, HubSyncState? state, CustomResourceOptions? opts = null)
    public static HubSync get(String name, Output<String> id, HubSyncState state, CustomResourceOptions options)
    resources:  _:    type: harness:chaos:HubSync    get:      id: ${id}
    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:
    HubId string
    The ID of the Chaos Hub to sync
    LastSyncedAt string
    Timestamp of the last sync
    OrgId string
    ProjectId string
    HubId string
    The ID of the Chaos Hub to sync
    LastSyncedAt string
    Timestamp of the last sync
    OrgId string
    ProjectId string
    hubId String
    The ID of the Chaos Hub to sync
    lastSyncedAt String
    Timestamp of the last sync
    orgId String
    projectId String
    hubId string
    The ID of the Chaos Hub to sync
    lastSyncedAt string
    Timestamp of the last sync
    orgId string
    projectId string
    hub_id str
    The ID of the Chaos Hub to sync
    last_synced_at str
    Timestamp of the last sync
    org_id str
    project_id str
    hubId String
    The ID of the Chaos Hub to sync
    lastSyncedAt String
    Timestamp of the last sync
    orgId String
    projectId String

    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.8.4 published on Thursday, Sep 11, 2025 by Pulumi