Documentation ¶
Index ¶
- func NewWorkspaceVcsRepoOutputReference_Override(w WorkspaceVcsRepoOutputReference, ...)
- func NewWorkspace_Override(w Workspace, scope constructs.Construct, id *string, config *WorkspaceConfig)
- func Workspace_IsConstruct(x interface{}) *bool
- func Workspace_IsTerraformElement(x interface{}) *bool
- func Workspace_IsTerraformResource(x interface{}) *bool
- func Workspace_TfResourceType() *string
- type Workspace
- type WorkspaceConfig
- type WorkspaceVcsRepo
- type WorkspaceVcsRepoOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWorkspaceVcsRepoOutputReference_Override ¶
func NewWorkspaceVcsRepoOutputReference_Override(w WorkspaceVcsRepoOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewWorkspace_Override ¶
func NewWorkspace_Override(w Workspace, scope constructs.Construct, id *string, config *WorkspaceConfig)
Create a new {@link https://www.terraform.io/docs/providers/tfe/r/workspace tfe_workspace} Resource.
func Workspace_IsConstruct ¶
func Workspace_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func Workspace_IsTerraformElement ¶
func Workspace_IsTerraformElement(x interface{}) *bool
Experimental.
func Workspace_IsTerraformResource ¶
func Workspace_IsTerraformResource(x interface{}) *bool
Experimental.
func Workspace_TfResourceType ¶
func Workspace_TfResourceType() *string
Types ¶
type Workspace ¶
type Workspace interface { cdktf.TerraformResource AgentPoolId() *string SetAgentPoolId(val *string) AgentPoolIdInput() *string AllowDestroyPlan() interface{} SetAllowDestroyPlan(val interface{}) AllowDestroyPlanInput() interface{} AssessmentsEnabled() interface{} SetAssessmentsEnabled(val interface{}) AssessmentsEnabledInput() interface{} AutoApply() interface{} SetAutoApply(val interface{}) AutoApplyInput() interface{} // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() *float64 // Experimental. SetCount(val *float64) // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) Description() *string SetDescription(val *string) DescriptionInput() *string ExecutionMode() *string SetExecutionMode(val *string) ExecutionModeInput() *string FileTriggersEnabled() interface{} SetFileTriggersEnabled(val interface{}) FileTriggersEnabledInput() interface{} ForceDelete() interface{} SetForceDelete(val interface{}) ForceDeleteInput() interface{} // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string GlobalRemoteState() interface{} SetGlobalRemoteState(val interface{}) GlobalRemoteStateInput() interface{} HtmlUrl() *string Id() *string SetId(val *string) IdInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Name() *string SetName(val *string) NameInput() *string // The tree node. Node() constructs.Node Operations() interface{} SetOperations(val interface{}) OperationsInput() interface{} Organization() *string SetOrganization(val *string) OrganizationInput() *string ProjectId() *string SetProjectId(val *string) ProjectIdInput() *string // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) QueueAllRuns() interface{} SetQueueAllRuns(val interface{}) QueueAllRunsInput() interface{} // Experimental. RawOverrides() interface{} RemoteStateConsumerIds() *[]*string SetRemoteStateConsumerIds(val *[]*string) RemoteStateConsumerIdsInput() *[]*string ResourceCount() *float64 SourceName() *string SetSourceName(val *string) SourceNameInput() *string SourceUrl() *string SetSourceUrl(val *string) SourceUrlInput() *string SpeculativeEnabled() interface{} SetSpeculativeEnabled(val interface{}) SpeculativeEnabledInput() interface{} SshKeyId() *string SetSshKeyId(val *string) SshKeyIdInput() *string StructuredRunOutputEnabled() interface{} SetStructuredRunOutputEnabled(val interface{}) StructuredRunOutputEnabledInput() interface{} TagNames() *[]*string SetTagNames(val *[]*string) TagNamesInput() *[]*string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string TerraformVersion() *string SetTerraformVersion(val *string) TerraformVersionInput() *string TriggerPatterns() *[]*string SetTriggerPatterns(val *[]*string) TriggerPatternsInput() *[]*string TriggerPrefixes() *[]*string SetTriggerPrefixes(val *[]*string) TriggerPrefixesInput() *[]*string VcsRepo() WorkspaceVcsRepoOutputReference VcsRepoInput() *WorkspaceVcsRepo WorkingDirectory() *string SetWorkingDirectory(val *string) WorkingDirectoryInput() *string // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutVcsRepo(value *WorkspaceVcsRepo) ResetAgentPoolId() ResetAllowDestroyPlan() ResetAssessmentsEnabled() ResetAutoApply() ResetDescription() ResetExecutionMode() ResetFileTriggersEnabled() ResetForceDelete() ResetGlobalRemoteState() ResetId() ResetOperations() ResetOrganization() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetProjectId() ResetQueueAllRuns() ResetRemoteStateConsumerIds() ResetSourceName() ResetSourceUrl() ResetSpeculativeEnabled() ResetSshKeyId() ResetStructuredRunOutputEnabled() ResetTagNames() ResetTerraformVersion() ResetTriggerPatterns() ResetTriggerPrefixes() ResetVcsRepo() ResetWorkingDirectory() SynthesizeAttributes() *map[string]interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://www.terraform.io/docs/providers/tfe/r/workspace tfe_workspace}.
func NewWorkspace ¶
func NewWorkspace(scope constructs.Construct, id *string, config *WorkspaceConfig) Workspace
Create a new {@link https://www.terraform.io/docs/providers/tfe/r/workspace tfe_workspace} Resource.
type WorkspaceConfig ¶
type WorkspaceConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count *float64 `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#name Workspace#name}. Name *string `field:"required" json:"name" yaml:"name"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#agent_pool_id Workspace#agent_pool_id}. AgentPoolId *string `field:"optional" json:"agentPoolId" yaml:"agentPoolId"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#allow_destroy_plan Workspace#allow_destroy_plan}. AllowDestroyPlan interface{} `field:"optional" json:"allowDestroyPlan" yaml:"allowDestroyPlan"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#assessments_enabled Workspace#assessments_enabled}. AssessmentsEnabled interface{} `field:"optional" json:"assessmentsEnabled" yaml:"assessmentsEnabled"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#auto_apply Workspace#auto_apply}. AutoApply interface{} `field:"optional" json:"autoApply" yaml:"autoApply"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#description Workspace#description}. Description *string `field:"optional" json:"description" yaml:"description"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#execution_mode Workspace#execution_mode}. ExecutionMode *string `field:"optional" json:"executionMode" yaml:"executionMode"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#file_triggers_enabled Workspace#file_triggers_enabled}. FileTriggersEnabled interface{} `field:"optional" json:"fileTriggersEnabled" yaml:"fileTriggersEnabled"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#force_delete Workspace#force_delete}. ForceDelete interface{} `field:"optional" json:"forceDelete" yaml:"forceDelete"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#global_remote_state Workspace#global_remote_state}. GlobalRemoteState interface{} `field:"optional" json:"globalRemoteState" yaml:"globalRemoteState"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#id Workspace#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#operations Workspace#operations}. Operations interface{} `field:"optional" json:"operations" yaml:"operations"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#organization Workspace#organization}. Organization *string `field:"optional" json:"organization" yaml:"organization"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#project_id Workspace#project_id}. ProjectId *string `field:"optional" json:"projectId" yaml:"projectId"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#queue_all_runs Workspace#queue_all_runs}. QueueAllRuns interface{} `field:"optional" json:"queueAllRuns" yaml:"queueAllRuns"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#remote_state_consumer_ids Workspace#remote_state_consumer_ids}. RemoteStateConsumerIds *[]*string `field:"optional" json:"remoteStateConsumerIds" yaml:"remoteStateConsumerIds"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#source_name Workspace#source_name}. SourceName *string `field:"optional" json:"sourceName" yaml:"sourceName"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#source_url Workspace#source_url}. SourceUrl *string `field:"optional" json:"sourceUrl" yaml:"sourceUrl"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#speculative_enabled Workspace#speculative_enabled}. SpeculativeEnabled interface{} `field:"optional" json:"speculativeEnabled" yaml:"speculativeEnabled"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#ssh_key_id Workspace#ssh_key_id}. SshKeyId *string `field:"optional" json:"sshKeyId" yaml:"sshKeyId"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#structured_run_output_enabled Workspace#structured_run_output_enabled}. StructuredRunOutputEnabled interface{} `field:"optional" json:"structuredRunOutputEnabled" yaml:"structuredRunOutputEnabled"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#tag_names Workspace#tag_names}. TagNames *[]*string `field:"optional" json:"tagNames" yaml:"tagNames"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#terraform_version Workspace#terraform_version}. TerraformVersion *string `field:"optional" json:"terraformVersion" yaml:"terraformVersion"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#trigger_patterns Workspace#trigger_patterns}. TriggerPatterns *[]*string `field:"optional" json:"triggerPatterns" yaml:"triggerPatterns"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#trigger_prefixes Workspace#trigger_prefixes}. TriggerPrefixes *[]*string `field:"optional" json:"triggerPrefixes" yaml:"triggerPrefixes"` // vcs_repo block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#vcs_repo Workspace#vcs_repo} VcsRepo *WorkspaceVcsRepo `field:"optional" json:"vcsRepo" yaml:"vcsRepo"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#working_directory Workspace#working_directory}. WorkingDirectory *string `field:"optional" json:"workingDirectory" yaml:"workingDirectory"` }
type WorkspaceVcsRepo ¶
type WorkspaceVcsRepo struct { // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#identifier Workspace#identifier}. Identifier *string `field:"required" json:"identifier" yaml:"identifier"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#branch Workspace#branch}. Branch *string `field:"optional" json:"branch" yaml:"branch"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#github_app_installation_id Workspace#github_app_installation_id}. GithubAppInstallationId *string `field:"optional" json:"githubAppInstallationId" yaml:"githubAppInstallationId"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#ingress_submodules Workspace#ingress_submodules}. IngressSubmodules interface{} `field:"optional" json:"ingressSubmodules" yaml:"ingressSubmodules"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#oauth_token_id Workspace#oauth_token_id}. OauthTokenId *string `field:"optional" json:"oauthTokenId" yaml:"oauthTokenId"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#tags_regex Workspace#tags_regex}. TagsRegex *string `field:"optional" json:"tagsRegex" yaml:"tagsRegex"` }
type WorkspaceVcsRepoOutputReference ¶
type WorkspaceVcsRepoOutputReference interface { cdktf.ComplexObject Branch() *string SetBranch(val *string) BranchInput() *string // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string GithubAppInstallationId() *string SetGithubAppInstallationId(val *string) GithubAppInstallationIdInput() *string Identifier() *string SetIdentifier(val *string) IdentifierInput() *string IngressSubmodules() interface{} SetIngressSubmodules(val interface{}) IngressSubmodulesInput() interface{} InternalValue() *WorkspaceVcsRepo SetInternalValue(val *WorkspaceVcsRepo) OauthTokenId() *string SetOauthTokenId(val *string) OauthTokenIdInput() *string TagsRegex() *string SetTagsRegex(val *string) TagsRegexInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetBranch() ResetGithubAppInstallationId() ResetIngressSubmodules() ResetOauthTokenId() ResetTagsRegex() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewWorkspaceVcsRepoOutputReference ¶
func NewWorkspaceVcsRepoOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) WorkspaceVcsRepoOutputReference