Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi
harness.platform.Overrides
Explore with Pulumi AI
Create Overrides Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Overrides(name: string, args: OverridesArgs, opts?: CustomResourceOptions);
@overload
def Overrides(resource_name: str,
args: OverridesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Overrides(resource_name: str,
opts: Optional[ResourceOptions] = None,
env_id: Optional[str] = None,
type: Optional[str] = None,
cluster_id: Optional[str] = None,
git_details: Optional[OverridesGitDetailsArgs] = None,
identifier: Optional[str] = None,
import_from_git: Optional[bool] = None,
infra_id: Optional[str] = None,
is_force_import: Optional[bool] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
service_id: Optional[str] = None,
yaml: Optional[str] = None)
func NewOverrides(ctx *Context, name string, args OverridesArgs, opts ...ResourceOption) (*Overrides, error)
public Overrides(string name, OverridesArgs args, CustomResourceOptions? opts = null)
public Overrides(String name, OverridesArgs args)
public Overrides(String name, OverridesArgs args, CustomResourceOptions options)
type: harness:platform:Overrides
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 OverridesArgs
- 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 OverridesArgs
- 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 OverridesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OverridesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OverridesArgs
- 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 overridesResource = new Harness.Platform.Overrides("overridesResource", new()
{
EnvId = "string",
Type = "string",
ClusterId = "string",
GitDetails = new Harness.Platform.Inputs.OverridesGitDetailsArgs
{
BaseBranch = "string",
Branch = "string",
CommitMessage = "string",
ConnectorRef = "string",
FilePath = "string",
IsHarnessCodeRepo = false,
IsNewBranch = false,
LastCommitId = "string",
LastObjectId = "string",
LoadFromCache = false,
LoadFromFallbackBranch = false,
RepoName = "string",
StoreType = "string",
},
Identifier = "string",
ImportFromGit = false,
InfraId = "string",
IsForceImport = false,
OrgId = "string",
ProjectId = "string",
ServiceId = "string",
Yaml = "string",
});
example, err := platform.NewOverrides(ctx, "overridesResource", &platform.OverridesArgs{
EnvId: pulumi.String("string"),
Type: pulumi.String("string"),
ClusterId: pulumi.String("string"),
GitDetails: &platform.OverridesGitDetailsArgs{
BaseBranch: pulumi.String("string"),
Branch: pulumi.String("string"),
CommitMessage: pulumi.String("string"),
ConnectorRef: pulumi.String("string"),
FilePath: pulumi.String("string"),
IsHarnessCodeRepo: pulumi.Bool(false),
IsNewBranch: pulumi.Bool(false),
LastCommitId: pulumi.String("string"),
LastObjectId: pulumi.String("string"),
LoadFromCache: pulumi.Bool(false),
LoadFromFallbackBranch: pulumi.Bool(false),
RepoName: pulumi.String("string"),
StoreType: pulumi.String("string"),
},
Identifier: pulumi.String("string"),
ImportFromGit: pulumi.Bool(false),
InfraId: pulumi.String("string"),
IsForceImport: pulumi.Bool(false),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
ServiceId: pulumi.String("string"),
Yaml: pulumi.String("string"),
})
var overridesResource = new Overrides("overridesResource", OverridesArgs.builder()
.envId("string")
.type("string")
.clusterId("string")
.gitDetails(OverridesGitDetailsArgs.builder()
.baseBranch("string")
.branch("string")
.commitMessage("string")
.connectorRef("string")
.filePath("string")
.isHarnessCodeRepo(false)
.isNewBranch(false)
.lastCommitId("string")
.lastObjectId("string")
.loadFromCache(false)
.loadFromFallbackBranch(false)
.repoName("string")
.storeType("string")
.build())
.identifier("string")
.importFromGit(false)
.infraId("string")
.isForceImport(false)
.orgId("string")
.projectId("string")
.serviceId("string")
.yaml("string")
.build());
overrides_resource = harness.platform.Overrides("overridesResource",
env_id="string",
type="string",
cluster_id="string",
git_details=harness.platform.OverridesGitDetailsArgs(
base_branch="string",
branch="string",
commit_message="string",
connector_ref="string",
file_path="string",
is_harness_code_repo=False,
is_new_branch=False,
last_commit_id="string",
last_object_id="string",
load_from_cache=False,
load_from_fallback_branch=False,
repo_name="string",
store_type="string",
),
identifier="string",
import_from_git=False,
infra_id="string",
is_force_import=False,
org_id="string",
project_id="string",
service_id="string",
yaml="string")
const overridesResource = new harness.platform.Overrides("overridesResource", {
envId: "string",
type: "string",
clusterId: "string",
gitDetails: {
baseBranch: "string",
branch: "string",
commitMessage: "string",
connectorRef: "string",
filePath: "string",
isHarnessCodeRepo: false,
isNewBranch: false,
lastCommitId: "string",
lastObjectId: "string",
loadFromCache: false,
loadFromFallbackBranch: false,
repoName: "string",
storeType: "string",
},
identifier: "string",
importFromGit: false,
infraId: "string",
isForceImport: false,
orgId: "string",
projectId: "string",
serviceId: "string",
yaml: "string",
});
type: harness:platform:Overrides
properties:
clusterId: string
envId: string
gitDetails:
baseBranch: string
branch: string
commitMessage: string
connectorRef: string
filePath: string
isHarnessCodeRepo: false
isNewBranch: false
lastCommitId: string
lastObjectId: string
loadFromCache: false
loadFromFallbackBranch: false
repoName: string
storeType: string
identifier: string
importFromGit: false
infraId: string
isForceImport: false
orgId: string
projectId: string
serviceId: string
type: string
yaml: string
Overrides 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 Overrides resource accepts the following input properties:
- Env
Id string - The environment ID to which the overrides are associated.
- Type string
- The type of the overrides.
- Cluster
Id string - The cluster ID to which the overrides are associated.
- Git
Details OverridesGit Details - Contains parameters related to creating an Entity for Git Experience.
- Identifier string
- The identifier of the override entity.
- Import
From boolGit - import override from git
- Infra
Id string - The infrastructure ID to which the overrides are associated.
- Is
Force boolImport - force import override from remote even if same file path already exist
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Service
Id string - The service ID to which the overrides applies.
- Yaml string
- The yaml of the override entity
- Env
Id string - The environment ID to which the overrides are associated.
- Type string
- The type of the overrides.
- Cluster
Id string - The cluster ID to which the overrides are associated.
- Git
Details OverridesGit Details Args - Contains parameters related to creating an Entity for Git Experience.
- Identifier string
- The identifier of the override entity.
- Import
From boolGit - import override from git
- Infra
Id string - The infrastructure ID to which the overrides are associated.
- Is
Force boolImport - force import override from remote even if same file path already exist
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Service
Id string - The service ID to which the overrides applies.
- Yaml string
- The yaml of the override entity
- env
Id String - The environment ID to which the overrides are associated.
- type String
- The type of the overrides.
- cluster
Id String - The cluster ID to which the overrides are associated.
- git
Details OverridesGit Details - Contains parameters related to creating an Entity for Git Experience.
- identifier String
- The identifier of the override entity.
- import
From BooleanGit - import override from git
- infra
Id String - The infrastructure ID to which the overrides are associated.
- is
Force BooleanImport - force import override from remote even if same file path already exist
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- service
Id String - The service ID to which the overrides applies.
- yaml String
- The yaml of the override entity
- env
Id string - The environment ID to which the overrides are associated.
- type string
- The type of the overrides.
- cluster
Id string - The cluster ID to which the overrides are associated.
- git
Details OverridesGit Details - Contains parameters related to creating an Entity for Git Experience.
- identifier string
- The identifier of the override entity.
- import
From booleanGit - import override from git
- infra
Id string - The infrastructure ID to which the overrides are associated.
- is
Force booleanImport - force import override from remote even if same file path already exist
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- service
Id string - The service ID to which the overrides applies.
- yaml string
- The yaml of the override entity
- env_
id str - The environment ID to which the overrides are associated.
- type str
- The type of the overrides.
- cluster_
id str - The cluster ID to which the overrides are associated.
- git_
details OverridesGit Details Args - Contains parameters related to creating an Entity for Git Experience.
- identifier str
- The identifier of the override entity.
- import_
from_ boolgit - import override from git
- infra_
id str - The infrastructure ID to which the overrides are associated.
- is_
force_ boolimport - force import override from remote even if same file path already exist
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- service_
id str - The service ID to which the overrides applies.
- yaml str
- The yaml of the override entity
- env
Id String - The environment ID to which the overrides are associated.
- type String
- The type of the overrides.
- cluster
Id String - The cluster ID to which the overrides are associated.
- git
Details Property Map - Contains parameters related to creating an Entity for Git Experience.
- identifier String
- The identifier of the override entity.
- import
From BooleanGit - import override from git
- infra
Id String - The infrastructure ID to which the overrides are associated.
- is
Force BooleanImport - force import override from remote even if same file path already exist
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- service
Id String - The service ID to which the overrides applies.
- yaml String
- The yaml of the override entity
Outputs
All input properties are implicitly available as output properties. Additionally, the Overrides 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 Overrides Resource
Get an existing Overrides 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?: OverridesState, opts?: CustomResourceOptions): Overrides
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
env_id: Optional[str] = None,
git_details: Optional[OverridesGitDetailsArgs] = None,
identifier: Optional[str] = None,
import_from_git: Optional[bool] = None,
infra_id: Optional[str] = None,
is_force_import: Optional[bool] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
service_id: Optional[str] = None,
type: Optional[str] = None,
yaml: Optional[str] = None) -> Overrides
func GetOverrides(ctx *Context, name string, id IDInput, state *OverridesState, opts ...ResourceOption) (*Overrides, error)
public static Overrides Get(string name, Input<string> id, OverridesState? state, CustomResourceOptions? opts = null)
public static Overrides get(String name, Output<String> id, OverridesState 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.
- Cluster
Id string - The cluster ID to which the overrides are associated.
- Env
Id string - The environment ID to which the overrides are associated.
- Git
Details OverridesGit Details - Contains parameters related to creating an Entity for Git Experience.
- Identifier string
- The identifier of the override entity.
- Import
From boolGit - import override from git
- Infra
Id string - The infrastructure ID to which the overrides are associated.
- Is
Force boolImport - force import override from remote even if same file path already exist
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Service
Id string - The service ID to which the overrides applies.
- Type string
- The type of the overrides.
- Yaml string
- The yaml of the override entity
- Cluster
Id string - The cluster ID to which the overrides are associated.
- Env
Id string - The environment ID to which the overrides are associated.
- Git
Details OverridesGit Details Args - Contains parameters related to creating an Entity for Git Experience.
- Identifier string
- The identifier of the override entity.
- Import
From boolGit - import override from git
- Infra
Id string - The infrastructure ID to which the overrides are associated.
- Is
Force boolImport - force import override from remote even if same file path already exist
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Service
Id string - The service ID to which the overrides applies.
- Type string
- The type of the overrides.
- Yaml string
- The yaml of the override entity
- cluster
Id String - The cluster ID to which the overrides are associated.
- env
Id String - The environment ID to which the overrides are associated.
- git
Details OverridesGit Details - Contains parameters related to creating an Entity for Git Experience.
- identifier String
- The identifier of the override entity.
- import
From BooleanGit - import override from git
- infra
Id String - The infrastructure ID to which the overrides are associated.
- is
Force BooleanImport - force import override from remote even if same file path already exist
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- service
Id String - The service ID to which the overrides applies.
- type String
- The type of the overrides.
- yaml String
- The yaml of the override entity
- cluster
Id string - The cluster ID to which the overrides are associated.
- env
Id string - The environment ID to which the overrides are associated.
- git
Details OverridesGit Details - Contains parameters related to creating an Entity for Git Experience.
- identifier string
- The identifier of the override entity.
- import
From booleanGit - import override from git
- infra
Id string - The infrastructure ID to which the overrides are associated.
- is
Force booleanImport - force import override from remote even if same file path already exist
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- service
Id string - The service ID to which the overrides applies.
- type string
- The type of the overrides.
- yaml string
- The yaml of the override entity
- cluster_
id str - The cluster ID to which the overrides are associated.
- env_
id str - The environment ID to which the overrides are associated.
- git_
details OverridesGit Details Args - Contains parameters related to creating an Entity for Git Experience.
- identifier str
- The identifier of the override entity.
- import_
from_ boolgit - import override from git
- infra_
id str - The infrastructure ID to which the overrides are associated.
- is_
force_ boolimport - force import override from remote even if same file path already exist
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- service_
id str - The service ID to which the overrides applies.
- type str
- The type of the overrides.
- yaml str
- The yaml of the override entity
- cluster
Id String - The cluster ID to which the overrides are associated.
- env
Id String - The environment ID to which the overrides are associated.
- git
Details Property Map - Contains parameters related to creating an Entity for Git Experience.
- identifier String
- The identifier of the override entity.
- import
From BooleanGit - import override from git
- infra
Id String - The infrastructure ID to which the overrides are associated.
- is
Force BooleanImport - force import override from remote even if same file path already exist
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- service
Id String - The service ID to which the overrides applies.
- type String
- The type of the overrides.
- yaml String
- The yaml of the override entity
Supporting Types
OverridesGitDetails, OverridesGitDetailsArgs
- Base
Branch string - Name of the default branch (this checks out a new branch titled by branch_name).
- Branch string
- Name of the branch.
- Commit
Message string - Commit message used for the merge commit.
- Connector
Ref string - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- File
Path string - File path of the Entity in the repository.
- Is
Harness boolCode Repo - If the repo is in harness code
- Is
New boolBranch - If the branch being created is new
- Last
Commit stringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- Last
Object stringId - Last object identifier (for Github). To be provided only when updating override.
- Load
From boolCache - Load service yaml from catch
- Load
From boolFallback Branch - Load service yaml from fallback branch
- Repo
Name string - Name of the repository.
- Store
Type string - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- Base
Branch string - Name of the default branch (this checks out a new branch titled by branch_name).
- Branch string
- Name of the branch.
- Commit
Message string - Commit message used for the merge commit.
- Connector
Ref string - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- File
Path string - File path of the Entity in the repository.
- Is
Harness boolCode Repo - If the repo is in harness code
- Is
New boolBranch - If the branch being created is new
- Last
Commit stringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- Last
Object stringId - Last object identifier (for Github). To be provided only when updating override.
- Load
From boolCache - Load service yaml from catch
- Load
From boolFallback Branch - Load service yaml from fallback branch
- Repo
Name string - Name of the repository.
- Store
Type string - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- base
Branch String - Name of the default branch (this checks out a new branch titled by branch_name).
- branch String
- Name of the branch.
- commit
Message String - Commit message used for the merge commit.
- connector
Ref String - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file
Path String - File path of the Entity in the repository.
- is
Harness BooleanCode Repo - If the repo is in harness code
- is
New BooleanBranch - If the branch being created is new
- last
Commit StringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- last
Object StringId - Last object identifier (for Github). To be provided only when updating override.
- load
From BooleanCache - Load service yaml from catch
- load
From BooleanFallback Branch - Load service yaml from fallback branch
- repo
Name String - Name of the repository.
- store
Type String - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- base
Branch string - Name of the default branch (this checks out a new branch titled by branch_name).
- branch string
- Name of the branch.
- commit
Message string - Commit message used for the merge commit.
- connector
Ref string - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file
Path string - File path of the Entity in the repository.
- is
Harness booleanCode Repo - If the repo is in harness code
- is
New booleanBranch - If the branch being created is new
- last
Commit stringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- last
Object stringId - Last object identifier (for Github). To be provided only when updating override.
- load
From booleanCache - Load service yaml from catch
- load
From booleanFallback Branch - Load service yaml from fallback branch
- repo
Name string - Name of the repository.
- store
Type string - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- base_
branch str - Name of the default branch (this checks out a new branch titled by branch_name).
- branch str
- Name of the branch.
- commit_
message str - Commit message used for the merge commit.
- connector_
ref str - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file_
path str - File path of the Entity in the repository.
- is_
harness_ boolcode_ repo - If the repo is in harness code
- is_
new_ boolbranch - If the branch being created is new
- last_
commit_ strid - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- last_
object_ strid - Last object identifier (for Github). To be provided only when updating override.
- load_
from_ boolcache - Load service yaml from catch
- load_
from_ boolfallback_ branch - Load service yaml from fallback branch
- repo_
name str - Name of the repository.
- store_
type str - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- base
Branch String - Name of the default branch (this checks out a new branch titled by branch_name).
- branch String
- Name of the branch.
- commit
Message String - Commit message used for the merge commit.
- connector
Ref String - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file
Path String - File path of the Entity in the repository.
- is
Harness BooleanCode Repo - If the repo is in harness code
- is
New BooleanBranch - If the branch being created is new
- last
Commit StringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- last
Object StringId - Last object identifier (for Github). To be provided only when updating override.
- load
From BooleanCache - Load service yaml from catch
- load
From BooleanFallback Branch - Load service yaml from fallback branch
- repo
Name String - Name of the repository.
- store
Type String - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.