harness.chaos.HubSync
Explore with Pulumi AI
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:
- hub_
id str - The ID of the Chaos Hub to sync
- org_
id str - project_
id str
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.
- Last
Synced stringAt - Timestamp of the last sync
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Synced stringAt - Timestamp of the last sync
- id String
- The provider-assigned unique ID for this managed resource.
- last
Synced StringAt - Timestamp of the last sync
- id string
- The provider-assigned unique ID for this managed resource.
- last
Synced stringAt - Timestamp of the last sync
- id str
- The provider-assigned unique ID for this managed resource.
- last_
synced_ strat - Timestamp of the last sync
- id String
- The provider-assigned unique ID for this managed resource.
- last
Synced StringAt - 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.
- Hub
Id string - The ID of the Chaos Hub to sync
- Last
Synced stringAt - Timestamp of the last sync
- Org
Id string - Project
Id string
- Hub
Id string - The ID of the Chaos Hub to sync
- Last
Synced stringAt - Timestamp of the last sync
- Org
Id string - Project
Id string
- hub
Id String - The ID of the Chaos Hub to sync
- last
Synced StringAt - Timestamp of the last sync
- org
Id String - project
Id String
- hub
Id string - The ID of the Chaos Hub to sync
- last
Synced stringAt - Timestamp of the last sync
- org
Id string - project
Id string
- hub_
id str - The ID of the Chaos Hub to sync
- last_
synced_ strat - Timestamp of the last sync
- org_
id str - project_
id str
- hub
Id String - The ID of the Chaos Hub to sync
- last
Synced StringAt - Timestamp of the last sync
- org
Id String - project
Id String
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.