UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

142 lines (141 loc) 4.64 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data source for retrieving a Harness Chaos Security Governance Condition * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Example of looking up a security governance condition by name * const byName = harness.chaos.getSecurityGovernanceCondition({ * orgId: orgId, * projectId: projectId, * name: "k8s-security-condition", * }); * // Example of looking up a security governance condition by ID * const byId = harness.chaos.getSecurityGovernanceCondition({ * orgId: orgId, * projectId: projectId, * id: "<condition_id>", * }); * export const securityGovernanceConditionByName = byName; * export const securityGovernanceConditionById = byId; * ``` */ export declare function getSecurityGovernanceCondition(args?: GetSecurityGovernanceConditionArgs, opts?: pulumi.InvokeOptions): Promise<GetSecurityGovernanceConditionResult>; /** * A collection of arguments for invoking getSecurityGovernanceCondition. */ export interface GetSecurityGovernanceConditionArgs { /** * The ID of the security governance condition. Either `id` or `name` must be specified. */ id?: string; /** * The name of the security governance condition. Either `id` or `name` must be specified. */ name?: string; /** * The organization ID of the security governance condition */ orgId?: string; /** * The project ID of the security governance condition */ projectId?: string; } /** * A collection of values returned by getSecurityGovernanceCondition. */ export interface GetSecurityGovernanceConditionResult { /** * The description of the security governance condition */ readonly description: string; /** * Fault specification for the condition */ readonly faultSpecs: outputs.chaos.GetSecurityGovernanceConditionFaultSpec[]; /** * The ID of the security governance condition. Either `id` or `name` must be specified. */ readonly id: string; /** * The infrastructure type (KubernetesV2, Linux, Windows) */ readonly infraType: string; /** * Kubernetes specific configuration */ readonly k8sSpecs: outputs.chaos.GetSecurityGovernanceConditionK8sSpec[]; /** * Machine specific configuration */ readonly machineSpecs: outputs.chaos.GetSecurityGovernanceConditionMachineSpec[]; /** * The name of the security governance condition. Either `id` or `name` must be specified. */ readonly name: string; /** * The organization ID of the security governance condition */ readonly orgId?: string; /** * The project ID of the security governance condition */ readonly projectId?: string; /** * Tags associated with the condition */ readonly tags: string[]; } /** * Data source for retrieving a Harness Chaos Security Governance Condition * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Example of looking up a security governance condition by name * const byName = harness.chaos.getSecurityGovernanceCondition({ * orgId: orgId, * projectId: projectId, * name: "k8s-security-condition", * }); * // Example of looking up a security governance condition by ID * const byId = harness.chaos.getSecurityGovernanceCondition({ * orgId: orgId, * projectId: projectId, * id: "<condition_id>", * }); * export const securityGovernanceConditionByName = byName; * export const securityGovernanceConditionById = byId; * ``` */ export declare function getSecurityGovernanceConditionOutput(args?: GetSecurityGovernanceConditionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSecurityGovernanceConditionResult>; /** * A collection of arguments for invoking getSecurityGovernanceCondition. */ export interface GetSecurityGovernanceConditionOutputArgs { /** * The ID of the security governance condition. Either `id` or `name` must be specified. */ id?: pulumi.Input<string>; /** * The name of the security governance condition. Either `id` or `name` must be specified. */ name?: pulumi.Input<string>; /** * The organization ID of the security governance condition */ orgId?: pulumi.Input<string>; /** * The project ID of the security governance condition */ projectId?: pulumi.Input<string>; }