// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS CodeBuild */ export interface CodebuildProjectConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#badge_enabled CodebuildProject#badge_enabled} */ readonly badgeEnabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#build_timeout CodebuildProject#build_timeout} */ readonly buildTimeout?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#concurrent_build_limit CodebuildProject#concurrent_build_limit} */ readonly concurrentBuildLimit?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#description CodebuildProject#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#encryption_key CodebuildProject#encryption_key} */ readonly encryptionKey?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#name CodebuildProject#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#queued_timeout CodebuildProject#queued_timeout} */ readonly queuedTimeout?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#service_role CodebuildProject#service_role} */ readonly serviceRole: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#source_version CodebuildProject#source_version} */ readonly sourceVersion?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#tags CodebuildProject#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#tags_all CodebuildProject#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * artifacts block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#artifacts CodebuildProject#artifacts} */ readonly artifacts: CodebuildProjectArtifacts; /** * build_batch_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#build_batch_config CodebuildProject#build_batch_config} */ readonly buildBatchConfig?: CodebuildProjectBuildBatchConfig; /** * cache block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#cache CodebuildProject#cache} */ readonly cache?: CodebuildProjectCache; /** * environment block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#environment CodebuildProject#environment} */ readonly environment: CodebuildProjectEnvironment; /** * file_system_locations block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#file_system_locations CodebuildProject#file_system_locations} */ readonly fileSystemLocations?: CodebuildProjectFileSystemLocations[]; /** * logs_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#logs_config CodebuildProject#logs_config} */ readonly logsConfig?: CodebuildProjectLogsConfig; /** * secondary_artifacts block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#secondary_artifacts CodebuildProject#secondary_artifacts} */ readonly secondaryArtifacts?: CodebuildProjectSecondaryArtifacts[]; /** * secondary_sources block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#secondary_sources CodebuildProject#secondary_sources} */ readonly secondarySources?: CodebuildProjectSecondarySources[]; /** * source block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#source CodebuildProject#source} */ readonly source: CodebuildProjectSource; /** * vpc_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#vpc_config CodebuildProject#vpc_config} */ readonly vpcConfig?: CodebuildProjectVpcConfig; } export interface CodebuildProjectArtifacts { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#artifact_identifier CodebuildProject#artifact_identifier} */ readonly artifactIdentifier?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#encryption_disabled CodebuildProject#encryption_disabled} */ readonly encryptionDisabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#location CodebuildProject#location} */ readonly location?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#name CodebuildProject#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#namespace_type CodebuildProject#namespace_type} */ readonly namespaceType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#override_artifact_name CodebuildProject#override_artifact_name} */ readonly overrideArtifactName?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#packaging CodebuildProject#packaging} */ readonly packaging?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#path CodebuildProject#path} */ readonly path?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#type CodebuildProject#type} */ readonly type: string; } export function codebuildProjectArtifactsToTerraform(struct?: CodebuildProjectArtifactsOutputReference | CodebuildProjectArtifacts): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { artifact_identifier: cdktf.stringToTerraform(struct!.artifactIdentifier), encryption_disabled: cdktf.booleanToTerraform(struct!.encryptionDisabled), location: cdktf.stringToTerraform(struct!.location), name: cdktf.stringToTerraform(struct!.name), namespace_type: cdktf.stringToTerraform(struct!.namespaceType), override_artifact_name: cdktf.booleanToTerraform(struct!.overrideArtifactName), packaging: cdktf.stringToTerraform(struct!.packaging), path: cdktf.stringToTerraform(struct!.path), type: cdktf.stringToTerraform(struct!.type), } } export class CodebuildProjectArtifactsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectArtifacts | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._artifactIdentifier !== undefined) { hasAnyValues = true; internalValueResult.artifactIdentifier = this._artifactIdentifier; } if (this._encryptionDisabled !== undefined) { hasAnyValues = true; internalValueResult.encryptionDisabled = this._encryptionDisabled; } if (this._location !== undefined) { hasAnyValues = true; internalValueResult.location = this._location; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._namespaceType !== undefined) { hasAnyValues = true; internalValueResult.namespaceType = this._namespaceType; } if (this._overrideArtifactName !== undefined) { hasAnyValues = true; internalValueResult.overrideArtifactName = this._overrideArtifactName; } if (this._packaging !== undefined) { hasAnyValues = true; internalValueResult.packaging = this._packaging; } if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectArtifacts | undefined) { if (value === undefined) { this.isEmptyObject = false; this._artifactIdentifier = undefined; this._encryptionDisabled = undefined; this._location = undefined; this._name = undefined; this._namespaceType = undefined; this._overrideArtifactName = undefined; this._packaging = undefined; this._path = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._artifactIdentifier = value.artifactIdentifier; this._encryptionDisabled = value.encryptionDisabled; this._location = value.location; this._name = value.name; this._namespaceType = value.namespaceType; this._overrideArtifactName = value.overrideArtifactName; this._packaging = value.packaging; this._path = value.path; this._type = value.type; } } // artifact_identifier - computed: false, optional: true, required: false private _artifactIdentifier?: string; public get artifactIdentifier() { return this.getStringAttribute('artifact_identifier'); } public set artifactIdentifier(value: string) { this._artifactIdentifier = value; } public resetArtifactIdentifier() { this._artifactIdentifier = undefined; } // Temporarily expose input value. Use with caution. public get artifactIdentifierInput() { return this._artifactIdentifier; } // encryption_disabled - computed: false, optional: true, required: false private _encryptionDisabled?: boolean | cdktf.IResolvable; public get encryptionDisabled() { return this.getBooleanAttribute('encryption_disabled') as any; } public set encryptionDisabled(value: boolean | cdktf.IResolvable) { this._encryptionDisabled = value; } public resetEncryptionDisabled() { this._encryptionDisabled = undefined; } // Temporarily expose input value. Use with caution. public get encryptionDisabledInput() { return this._encryptionDisabled; } // location - computed: false, optional: true, required: false private _location?: string; public get location() { return this.getStringAttribute('location'); } public set location(value: string) { this._location = value; } public resetLocation() { this._location = undefined; } // Temporarily expose input value. Use with caution. public get locationInput() { return this._location; } // name - computed: false, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // namespace_type - computed: false, optional: true, required: false private _namespaceType?: string; public get namespaceType() { return this.getStringAttribute('namespace_type'); } public set namespaceType(value: string) { this._namespaceType = value; } public resetNamespaceType() { this._namespaceType = undefined; } // Temporarily expose input value. Use with caution. public get namespaceTypeInput() { return this._namespaceType; } // override_artifact_name - computed: false, optional: true, required: false private _overrideArtifactName?: boolean | cdktf.IResolvable; public get overrideArtifactName() { return this.getBooleanAttribute('override_artifact_name') as any; } public set overrideArtifactName(value: boolean | cdktf.IResolvable) { this._overrideArtifactName = value; } public resetOverrideArtifactName() { this._overrideArtifactName = undefined; } // Temporarily expose input value. Use with caution. public get overrideArtifactNameInput() { return this._overrideArtifactName; } // packaging - computed: false, optional: true, required: false private _packaging?: string; public get packaging() { return this.getStringAttribute('packaging'); } public set packaging(value: string) { this._packaging = value; } public resetPackaging() { this._packaging = undefined; } // Temporarily expose input value. Use with caution. public get packagingInput() { return this._packaging; } // path - computed: false, optional: true, required: false private _path?: string; public get path() { return this.getStringAttribute('path'); } public set path(value: string) { this._path = value; } public resetPath() { this._path = undefined; } // Temporarily expose input value. Use with caution. public get pathInput() { return this._path; } // type - computed: false, optional: false, required: true private _type?: string; public get type() { return this.getStringAttribute('type'); } public set type(value: string) { this._type = value; } // Temporarily expose input value. Use with caution. public get typeInput() { return this._type; } } export interface CodebuildProjectBuildBatchConfigRestrictions { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#compute_types_allowed CodebuildProject#compute_types_allowed} */ readonly computeTypesAllowed?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#maximum_builds_allowed CodebuildProject#maximum_builds_allowed} */ readonly maximumBuildsAllowed?: number; } export function codebuildProjectBuildBatchConfigRestrictionsToTerraform(struct?: CodebuildProjectBuildBatchConfigRestrictionsOutputReference | CodebuildProjectBuildBatchConfigRestrictions): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { compute_types_allowed: cdktf.listMapper(cdktf.stringToTerraform)(struct!.computeTypesAllowed), maximum_builds_allowed: cdktf.numberToTerraform(struct!.maximumBuildsAllowed), } } export class CodebuildProjectBuildBatchConfigRestrictionsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectBuildBatchConfigRestrictions | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._computeTypesAllowed !== undefined) { hasAnyValues = true; internalValueResult.computeTypesAllowed = this._computeTypesAllowed; } if (this._maximumBuildsAllowed !== undefined) { hasAnyValues = true; internalValueResult.maximumBuildsAllowed = this._maximumBuildsAllowed; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectBuildBatchConfigRestrictions | undefined) { if (value === undefined) { this.isEmptyObject = false; this._computeTypesAllowed = undefined; this._maximumBuildsAllowed = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._computeTypesAllowed = value.computeTypesAllowed; this._maximumBuildsAllowed = value.maximumBuildsAllowed; } } // compute_types_allowed - computed: false, optional: true, required: false private _computeTypesAllowed?: string[]; public get computeTypesAllowed() { return this.getListAttribute('compute_types_allowed'); } public set computeTypesAllowed(value: string[]) { this._computeTypesAllowed = value; } public resetComputeTypesAllowed() { this._computeTypesAllowed = undefined; } // Temporarily expose input value. Use with caution. public get computeTypesAllowedInput() { return this._computeTypesAllowed; } // maximum_builds_allowed - computed: false, optional: true, required: false private _maximumBuildsAllowed?: number; public get maximumBuildsAllowed() { return this.getNumberAttribute('maximum_builds_allowed'); } public set maximumBuildsAllowed(value: number) { this._maximumBuildsAllowed = value; } public resetMaximumBuildsAllowed() { this._maximumBuildsAllowed = undefined; } // Temporarily expose input value. Use with caution. public get maximumBuildsAllowedInput() { return this._maximumBuildsAllowed; } } export interface CodebuildProjectBuildBatchConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#combine_artifacts CodebuildProject#combine_artifacts} */ readonly combineArtifacts?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#service_role CodebuildProject#service_role} */ readonly serviceRole: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#timeout_in_mins CodebuildProject#timeout_in_mins} */ readonly timeoutInMins?: number; /** * restrictions block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#restrictions CodebuildProject#restrictions} */ readonly restrictions?: CodebuildProjectBuildBatchConfigRestrictions; } export function codebuildProjectBuildBatchConfigToTerraform(struct?: CodebuildProjectBuildBatchConfigOutputReference | CodebuildProjectBuildBatchConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { combine_artifacts: cdktf.booleanToTerraform(struct!.combineArtifacts), service_role: cdktf.stringToTerraform(struct!.serviceRole), timeout_in_mins: cdktf.numberToTerraform(struct!.timeoutInMins), restrictions: codebuildProjectBuildBatchConfigRestrictionsToTerraform(struct!.restrictions), } } export class CodebuildProjectBuildBatchConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectBuildBatchConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._combineArtifacts !== undefined) { hasAnyValues = true; internalValueResult.combineArtifacts = this._combineArtifacts; } if (this._serviceRole !== undefined) { hasAnyValues = true; internalValueResult.serviceRole = this._serviceRole; } if (this._timeoutInMins !== undefined) { hasAnyValues = true; internalValueResult.timeoutInMins = this._timeoutInMins; } if (this._restrictions?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.restrictions = this._restrictions?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectBuildBatchConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._combineArtifacts = undefined; this._serviceRole = undefined; this._timeoutInMins = undefined; this._restrictions.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._combineArtifacts = value.combineArtifacts; this._serviceRole = value.serviceRole; this._timeoutInMins = value.timeoutInMins; this._restrictions.internalValue = value.restrictions; } } // combine_artifacts - computed: false, optional: true, required: false private _combineArtifacts?: boolean | cdktf.IResolvable; public get combineArtifacts() { return this.getBooleanAttribute('combine_artifacts') as any; } public set combineArtifacts(value: boolean | cdktf.IResolvable) { this._combineArtifacts = value; } public resetCombineArtifacts() { this._combineArtifacts = undefined; } // Temporarily expose input value. Use with caution. public get combineArtifactsInput() { return this._combineArtifacts; } // service_role - computed: false, optional: false, required: true private _serviceRole?: string; public get serviceRole() { return this.getStringAttribute('service_role'); } public set serviceRole(value: string) { this._serviceRole = value; } // Temporarily expose input value. Use with caution. public get serviceRoleInput() { return this._serviceRole; } // timeout_in_mins - computed: false, optional: true, required: false private _timeoutInMins?: number; public get timeoutInMins() { return this.getNumberAttribute('timeout_in_mins'); } public set timeoutInMins(value: number) { this._timeoutInMins = value; } public resetTimeoutInMins() { this._timeoutInMins = undefined; } // Temporarily expose input value. Use with caution. public get timeoutInMinsInput() { return this._timeoutInMins; } // restrictions - computed: false, optional: true, required: false private _restrictions = new CodebuildProjectBuildBatchConfigRestrictionsOutputReference(this as any, "restrictions", true); public get restrictions() { return this._restrictions; } public putRestrictions(value: CodebuildProjectBuildBatchConfigRestrictions) { this._restrictions.internalValue = value; } public resetRestrictions() { this._restrictions.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get restrictionsInput() { return this._restrictions.internalValue; } } export interface CodebuildProjectCache { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#location CodebuildProject#location} */ readonly location?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#modes CodebuildProject#modes} */ readonly modes?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#type CodebuildProject#type} */ readonly type?: string; } export function codebuildProjectCacheToTerraform(struct?: CodebuildProjectCacheOutputReference | CodebuildProjectCache): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { location: cdktf.stringToTerraform(struct!.location), modes: cdktf.listMapper(cdktf.stringToTerraform)(struct!.modes), type: cdktf.stringToTerraform(struct!.type), } } export class CodebuildProjectCacheOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectCache | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._location !== undefined) { hasAnyValues = true; internalValueResult.location = this._location; } if (this._modes !== undefined) { hasAnyValues = true; internalValueResult.modes = this._modes; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectCache | undefined) { if (value === undefined) { this.isEmptyObject = false; this._location = undefined; this._modes = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._location = value.location; this._modes = value.modes; this._type = value.type; } } // location - computed: false, optional: true, required: false private _location?: string; public get location() { return this.getStringAttribute('location'); } public set location(value: string) { this._location = value; } public resetLocation() { this._location = undefined; } // Temporarily expose input value. Use with caution. public get locationInput() { return this._location; } // modes - computed: false, optional: true, required: false private _modes?: string[]; public get modes() { return this.getListAttribute('modes'); } public set modes(value: string[]) { this._modes = value; } public resetModes() { this._modes = undefined; } // Temporarily expose input value. Use with caution. public get modesInput() { return this._modes; } // type - computed: false, optional: true, required: false private _type?: string; public get type() { return this.getStringAttribute('type'); } public set type(value: string) { this._type = value; } public resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. public get typeInput() { return this._type; } } export interface CodebuildProjectEnvironmentEnvironmentVariable { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#name CodebuildProject#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#type CodebuildProject#type} */ readonly type?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#value CodebuildProject#value} */ readonly value: string; } export function codebuildProjectEnvironmentEnvironmentVariableToTerraform(struct?: CodebuildProjectEnvironmentEnvironmentVariable): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { name: cdktf.stringToTerraform(struct!.name), type: cdktf.stringToTerraform(struct!.type), value: cdktf.stringToTerraform(struct!.value), } } export interface CodebuildProjectEnvironmentRegistryCredential { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#credential CodebuildProject#credential} */ readonly credential: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#credential_provider CodebuildProject#credential_provider} */ readonly credentialProvider: string; } export function codebuildProjectEnvironmentRegistryCredentialToTerraform(struct?: CodebuildProjectEnvironmentRegistryCredentialOutputReference | CodebuildProjectEnvironmentRegistryCredential): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { credential: cdktf.stringToTerraform(struct!.credential), credential_provider: cdktf.stringToTerraform(struct!.credentialProvider), } } export class CodebuildProjectEnvironmentRegistryCredentialOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectEnvironmentRegistryCredential | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._credential !== undefined) { hasAnyValues = true; internalValueResult.credential = this._credential; } if (this._credentialProvider !== undefined) { hasAnyValues = true; internalValueResult.credentialProvider = this._credentialProvider; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectEnvironmentRegistryCredential | undefined) { if (value === undefined) { this.isEmptyObject = false; this._credential = undefined; this._credentialProvider = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._credential = value.credential; this._credentialProvider = value.credentialProvider; } } // credential - computed: false, optional: false, required: true private _credential?: string; public get credential() { return this.getStringAttribute('credential'); } public set credential(value: string) { this._credential = value; } // Temporarily expose input value. Use with caution. public get credentialInput() { return this._credential; } // credential_provider - computed: false, optional: false, required: true private _credentialProvider?: string; public get credentialProvider() { return this.getStringAttribute('credential_provider'); } public set credentialProvider(value: string) { this._credentialProvider = value; } // Temporarily expose input value. Use with caution. public get credentialProviderInput() { return this._credentialProvider; } } export interface CodebuildProjectEnvironment { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#certificate CodebuildProject#certificate} */ readonly certificate?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#compute_type CodebuildProject#compute_type} */ readonly computeType: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#image CodebuildProject#image} */ readonly image: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#image_pull_credentials_type CodebuildProject#image_pull_credentials_type} */ readonly imagePullCredentialsType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#privileged_mode CodebuildProject#privileged_mode} */ readonly privilegedMode?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#type CodebuildProject#type} */ readonly type: string; /** * environment_variable block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#environment_variable CodebuildProject#environment_variable} */ readonly environmentVariable?: CodebuildProjectEnvironmentEnvironmentVariable[]; /** * registry_credential block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#registry_credential CodebuildProject#registry_credential} */ readonly registryCredential?: CodebuildProjectEnvironmentRegistryCredential; } export function codebuildProjectEnvironmentToTerraform(struct?: CodebuildProjectEnvironmentOutputReference | CodebuildProjectEnvironment): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { certificate: cdktf.stringToTerraform(struct!.certificate), compute_type: cdktf.stringToTerraform(struct!.computeType), image: cdktf.stringToTerraform(struct!.image), image_pull_credentials_type: cdktf.stringToTerraform(struct!.imagePullCredentialsType), privileged_mode: cdktf.booleanToTerraform(struct!.privilegedMode), type: cdktf.stringToTerraform(struct!.type), environment_variable: cdktf.listMapper(codebuildProjectEnvironmentEnvironmentVariableToTerraform)(struct!.environmentVariable), registry_credential: codebuildProjectEnvironmentRegistryCredentialToTerraform(struct!.registryCredential), } } export class CodebuildProjectEnvironmentOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectEnvironment | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._certificate !== undefined) { hasAnyValues = true; internalValueResult.certificate = this._certificate; } if (this._computeType !== undefined) { hasAnyValues = true; internalValueResult.computeType = this._computeType; } if (this._image !== undefined) { hasAnyValues = true; internalValueResult.image = this._image; } if (this._imagePullCredentialsType !== undefined) { hasAnyValues = true; internalValueResult.imagePullCredentialsType = this._imagePullCredentialsType; } if (this._privilegedMode !== undefined) { hasAnyValues = true; internalValueResult.privilegedMode = this._privilegedMode; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._environmentVariable !== undefined) { hasAnyValues = true; internalValueResult.environmentVariable = this._environmentVariable; } if (this._registryCredential?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.registryCredential = this._registryCredential?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectEnvironment | undefined) { if (value === undefined) { this.isEmptyObject = false; this._certificate = undefined; this._computeType = undefined; this._image = undefined; this._imagePullCredentialsType = undefined; this._privilegedMode = undefined; this._type = undefined; this._environmentVariable = undefined; this._registryCredential.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._certificate = value.certificate; this._computeType = value.computeType; this._image = value.image; this._imagePullCredentialsType = value.imagePullCredentialsType; this._privilegedMode = value.privilegedMode; this._type = value.type; this._environmentVariable = value.environmentVariable; this._registryCredential.internalValue = value.registryCredential; } } // certificate - computed: false, optional: true, required: false private _certificate?: string; public get certificate() { return this.getStringAttribute('certificate'); } public set certificate(value: string) { this._certificate = value; } public resetCertificate() { this._certificate = undefined; } // Temporarily expose input value. Use with caution. public get certificateInput() { return this._certificate; } // compute_type - computed: false, optional: false, required: true private _computeType?: string; public get computeType() { return this.getStringAttribute('compute_type'); } public set computeType(value: string) { this._computeType = value; } // Temporarily expose input value. Use with caution. public get computeTypeInput() { return this._computeType; } // image - computed: false, optional: false, required: true private _image?: string; public get image() { return this.getStringAttribute('image'); } public set image(value: string) { this._image = value; } // Temporarily expose input value. Use with caution. public get imageInput() { return this._image; } // image_pull_credentials_type - computed: false, optional: true, required: false private _imagePullCredentialsType?: string; public get imagePullCredentialsType() { return this.getStringAttribute('image_pull_credentials_type'); } public set imagePullCredentialsType(value: string) { this._imagePullCredentialsType = value; } public resetImagePullCredentialsType() { this._imagePullCredentialsType = undefined; } // Temporarily expose input value. Use with caution. public get imagePullCredentialsTypeInput() { return this._imagePullCredentialsType; } // privileged_mode - computed: false, optional: true, required: false private _privilegedMode?: boolean | cdktf.IResolvable; public get privilegedMode() { return this.getBooleanAttribute('privileged_mode') as any; } public set privilegedMode(value: boolean | cdktf.IResolvable) { this._privilegedMode = value; } public resetPrivilegedMode() { this._privilegedMode = undefined; } // Temporarily expose input value. Use with caution. public get privilegedModeInput() { return this._privilegedMode; } // type - computed: false, optional: false, required: true private _type?: string; public get type() { return this.getStringAttribute('type'); } public set type(value: string) { this._type = value; } // Temporarily expose input value. Use with caution. public get typeInput() { return this._type; } // environment_variable - computed: false, optional: true, required: false private _environmentVariable?: CodebuildProjectEnvironmentEnvironmentVariable[]; public get environmentVariable() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('environment_variable') as any; } public set environmentVariable(value: CodebuildProjectEnvironmentEnvironmentVariable[]) { this._environmentVariable = value; } public resetEnvironmentVariable() { this._environmentVariable = undefined; } // Temporarily expose input value. Use with caution. public get environmentVariableInput() { return this._environmentVariable; } // registry_credential - computed: false, optional: true, required: false private _registryCredential = new CodebuildProjectEnvironmentRegistryCredentialOutputReference(this as any, "registry_credential", true); public get registryCredential() { return this._registryCredential; } public putRegistryCredential(value: CodebuildProjectEnvironmentRegistryCredential) { this._registryCredential.internalValue = value; } public resetRegistryCredential() { this._registryCredential.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get registryCredentialInput() { return this._registryCredential.internalValue; } } export interface CodebuildProjectFileSystemLocations { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#identifier CodebuildProject#identifier} */ readonly identifier?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#location CodebuildProject#location} */ readonly location?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#mount_options CodebuildProject#mount_options} */ readonly mountOptions?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#mount_point CodebuildProject#mount_point} */ readonly mountPoint?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#type CodebuildProject#type} */ readonly type?: string; } export function codebuildProjectFileSystemLocationsToTerraform(struct?: CodebuildProjectFileSystemLocations): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { identifier: cdktf.stringToTerraform(struct!.identifier), location: cdktf.stringToTerraform(struct!.location), mount_options: cdktf.stringToTerraform(struct!.mountOptions), mount_point: cdktf.stringToTerraform(struct!.mountPoint), type: cdktf.stringToTerraform(struct!.type), } } export interface CodebuildProjectLogsConfigCloudwatchLogs { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#group_name CodebuildProject#group_name} */ readonly groupName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#status CodebuildProject#status} */ readonly status?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#stream_name CodebuildProject#stream_name} */ readonly streamName?: string; } export function codebuildProjectLogsConfigCloudwatchLogsToTerraform(struct?: CodebuildProjectLogsConfigCloudwatchLogsOutputReference | CodebuildProjectLogsConfigCloudwatchLogs): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { group_name: cdktf.stringToTerraform(struct!.groupName), status: cdktf.stringToTerraform(struct!.status), stream_name: cdktf.stringToTerraform(struct!.streamName), } } export class CodebuildProjectLogsConfigCloudwatchLogsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectLogsConfigCloudwatchLogs | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._groupName !== undefined) { hasAnyValues = true; internalValueResult.groupName = this._groupName; } if (this._status !== undefined) { hasAnyValues = true; internalValueResult.status = this._status; } if (this._streamName !== undefined) { hasAnyValues = true; internalValueResult.streamName = this._streamName; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectLogsConfigCloudwatchLogs | undefined) { if (value === undefined) { this.isEmptyObject = false; this._groupName = undefined; this._status = undefined; this._streamName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._groupName = value.groupName; this._status = value.status; this._streamName = value.streamName; } } // group_name - computed: false, optional: true, required: false private _groupName?: string; public get groupName() { return this.getStringAttribute('group_name'); } public set groupName(value: string) { this._groupName = value; } public resetGroupName() { this._groupName = undefined; } // Temporarily expose input value. Use with caution. public get groupNameInput() { return this._groupName; } // status - computed: false, optional: true, required: false private _status?: string; public get status() { return this.getStringAttribute('status'); } public set status(value: string) { this._status = value; } public resetStatus() { this._status = undefined; } // Temporarily expose input value. Use with caution. public get statusInput() { return this._status; } // stream_name - computed: false, optional: true, required: false private _streamName?: string; public get streamName() { return this.getStringAttribute('stream_name'); } public set streamName(value: string) { this._streamName = value; } public resetStreamName() { this._streamName = undefined; } // Temporarily expose input value. Use with caution. public get streamNameInput() { return this._streamName; } } export interface CodebuildProjectLogsConfigS3Logs { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#encryption_disabled CodebuildProject#encryption_disabled} */ readonly encryptionDisabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#location CodebuildProject#location} */ readonly location?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#status CodebuildProject#status} */ readonly status?: string; } export function codebuildProjectLogsConfigS3LogsToTerraform(struct?: CodebuildProjectLogsConfigS3LogsOutputReference | CodebuildProjectLogsConfigS3Logs): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { encryption_disabled: cdktf.booleanToTerraform(struct!.encryptionDisabled), location: cdktf.stringToTerraform(struct!.location), status: cdktf.stringToTerraform(struct!.status), } } export class CodebuildProjectLogsConfigS3LogsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectLogsConfigS3Logs | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._encryptionDisabled !== undefined) { hasAnyValues = true; internalValueResult.encryptionDisabled = this._encryptionDisabled; } if (this._location !== undefined) { hasAnyValues = true; internalValueResult.location = this._location; } if (this._status !== undefined) { hasAnyValues = true; internalValueResult.status = this._status; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectLogsConfigS3Logs | undefined) { if (value === undefined) { this.isEmptyObject = false; this._encryptionDisabled = undefined; this._location = undefined; this._status = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._encryptionDisabled = value.encryptionDisabled; this._location = value.location; this._status = value.status; } } // encryption_disabled - computed: false, optional: true, required: false private _encryptionDisabled?: boolean | cdktf.IResolvable; public get encryptionDisabled() { return this.getBooleanAttribute('encryption_disabled') as any; } public set encryptionDisabled(value: boolean | cdktf.IResolvable) { this._encryptionDisabled = value; } public resetEncryptionDisabled() { this._encryptionDisabled = undefined; } // Temporarily expose input value. Use with caution. public get encryptionDisabledInput() { return this._encryptionDisabled; } // location - computed: false, optional: true, required: false private _location?: string; public get location() { return this.getStringAttribute('location'); } public set location(value: string) { this._location = value; } public resetLocation() { this._location = undefined; } // Temporarily expose input value. Use with caution. public get locationInput() { return this._location; } // status - computed: false, optional: true, required: false private _status?: string; public get status() { return this.getStringAttribute('status'); } public set status(value: string) { this._status = value; } public resetStatus() { this._status = undefined; } // Temporarily expose input value. Use with caution. public get statusInput() { return this._status; } } export interface CodebuildProjectLogsConfig { /** * cloudwatch_logs block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#cloudwatch_logs CodebuildProject#cloudwatch_logs} */ readonly cloudwatchLogs?: CodebuildProjectLogsConfigCloudwatchLogs; /** * s3_logs block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#s3_logs CodebuildProject#s3_logs} */ readonly s3Logs?: CodebuildProjectLogsConfigS3Logs; } export function codebuildProjectLogsConfigToTerraform(struct?: CodebuildProjectLogsConfigOutputReference | CodebuildProjectLogsConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { cloudwatch_logs: codebuildProjectLogsConfigCloudwatchLogsToTerraform(struct!.cloudwatchLogs), s3_logs: codebuildProjectLogsConfigS3LogsToTerraform(struct!.s3Logs), } } export class CodebuildProjectLogsConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectLogsConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._cloudwatchLogs?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.cloudwatchLogs = this._cloudwatchLogs?.internalValue; } if (this._s3Logs?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.s3Logs = this._s3Logs?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectLogsConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._cloudwatchLogs.internalValue = undefined; this._s3Logs.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._cloudwatchLogs.internalValue = value.cloudwatchLogs; this._s3Logs.internalValue = value.s3Logs; } } // cloudwatch_logs - computed: false, optional: true, required: false private _cloudwatchLogs = new CodebuildProjectLogsConfigCloudwatchLogsOutputReference(this as any, "cloudwatch_logs", true); public get cloudwatchLogs() { return this._cloudwatchLogs; } public putCloudwatchLogs(value: CodebuildProjectLogsConfigCloudwatchLogs) { this._cloudwatchLogs.internalValue = value; } public resetCloudwatchLogs() { this._cloudwatchLogs.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get cloudwatchLogsInput() { return this._cloudwatchLogs.internalValue; } // s3_logs - computed: false, optional: true, required: false private _s3Logs = new CodebuildProjectLogsConfigS3LogsOutputReference(this as any, "s3_logs", true); public get s3Logs() { return this._s3Logs; } public putS3Logs(value: CodebuildProjectLogsConfigS3Logs) { this._s3Logs.internalValue = value; } public resetS3Logs() { this._s3Logs.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get s3LogsInput() { return this._s3Logs.internalValue; } } export interface CodebuildProjectSecondaryArtifacts { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#artifact_identifier CodebuildProject#artifact_identifier} */ readonly artifactIdentifier: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#encryption_disabled CodebuildProject#encryption_disabled} */ readonly encryptionDisabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#location CodebuildProject#location} */ readonly location?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#name CodebuildProject#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#namespace_type CodebuildProject#namespace_type} */ readonly namespaceType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#override_artifact_name CodebuildProject#override_artifact_name} */ readonly overrideArtifactName?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#packaging CodebuildProject#packaging} */ readonly packaging?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#path CodebuildProject#path} */ readonly path?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#type CodebuildProject#type} */ readonly type: string; } export function codebuildProjectSecondaryArtifactsToTerraform(struct?: CodebuildProjectSecondaryArtifacts): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { artifact_identifier: cdktf.stringToTerraform(struct!.artifactIdentifier), encryption_disabled: cdktf.booleanToTerraform(struct!.encryptionDisabled), location: cdktf.stringToTerraform(struct!.location), name: cdktf.stringToTerraform(struct!.name), namespace_type: cdktf.stringToTerraform(struct!.namespaceType), override_artifact_name: cdktf.booleanToTerraform(struct!.overrideArtifactName), packaging: cdktf.stringToTerraform(struct!.packaging), path: cdktf.stringToTerraform(struct!.path), type: cdktf.stringToTerraform(struct!.type), } } export interface CodebuildProjectSecondarySourcesAuth { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#resource CodebuildProject#resource} */ readonly resource?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#type CodebuildProject#type} */ readonly type: string; } export function codebuildProjectSecondarySourcesAuthToTerraform(struct?: CodebuildProjectSecondarySourcesAuthOutputReference | CodebuildProjectSecondarySourcesAuth): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { resource: cdktf.stringToTerraform(struct!.resource), type: cdktf.stringToTerraform(struct!.type), } } export class CodebuildProjectSecondarySourcesAuthOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectSecondarySourcesAuth | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._resource !== undefined) { hasAnyValues = true; internalValueResult.resource = this._resource; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectSecondarySourcesAuth | undefined) { if (value === undefined) { this.isEmptyObject = false; this._resource = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._resource = value.resource; this._type = value.type; } } // resource - computed: false, optional: true, required: false private _resource?: string; public get resource() { return this.getStringAttribute('resource'); } public set resource(value: string) { this._resource = value; } public resetResource() { this._resource = undefined; } // Temporarily expose input value. Use with caution. public get resourceInput() { return this._resource; } // type - computed: false, optional: false, required: true private _type?: string; public get type() { return this.getStringAttribute('type'); } public set type(value: string) { this._type = value; } // Temporarily expose input value. Use with caution. public get typeInput() { return this._type; } } export interface CodebuildProjectSecondarySourcesBuildStatusConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#context CodebuildProject#context} */ readonly context?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#target_url CodebuildProject#target_url} */ readonly targetUrl?: string; } export function codebuildProjectSecondarySourcesBuildStatusConfigToTerraform(struct?: CodebuildProjectSecondarySourcesBuildStatusConfigOutputReference | CodebuildProjectSecondarySourcesBuildStatusConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { context: cdktf.stringToTerraform(struct!.context), target_url: cdktf.stringToTerraform(struct!.targetUrl), } } export class CodebuildProjectSecondarySourcesBuildStatusConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectSecondarySourcesBuildStatusConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._context !== undefined) { hasAnyValues = true; internalValueResult.context = this._context; } if (this._targetUrl !== undefined) { hasAnyValues = true; internalValueResult.targetUrl = this._targetUrl; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectSecondarySourcesBuildStatusConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._context = undefined; this._targetUrl = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._context = value.context; this._targetUrl = value.targetUrl; } } // context - computed: false, optional: true, required: false private _context?: string; public get context() { return this.getStringAttribute('context'); } public set context(value: string) { this._context = value; } public resetContext() { this._context = undefined; } // Temporarily expose input value. Use with caution. public get contextInput() { return this._context; } // target_url - computed: false, optional: true, required: false private _targetUrl?: string; public get targetUrl() { return this.getStringAttribute('target_url'); } public set targetUrl(value: string) { this._targetUrl = value; } public resetTargetUrl() { this._targetUrl = undefined; } // Temporarily expose input value. Use with caution. public get targetUrlInput() { return this._targetUrl; } } export interface CodebuildProjectSecondarySourcesGitSubmodulesConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#fetch_submodules CodebuildProject#fetch_submodules} */ readonly fetchSubmodules: boolean | cdktf.IResolvable; } export function codebuildProjectSecondarySourcesGitSubmodulesConfigToTerraform(struct?: CodebuildProjectSecondarySourcesGitSubmodulesConfigOutputReference | CodebuildProjectSecondarySourcesGitSubmodulesConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { fetch_submodules: cdktf.booleanToTerraform(struct!.fetchSubmodules), } } export class CodebuildProjectSecondarySourcesGitSubmodulesConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectSecondarySourcesGitSubmodulesConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._fetchSubmodules !== undefined) { hasAnyValues = true; internalValueResult.fetchSubmodules = this._fetchSubmodules; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectSecondarySourcesGitSubmodulesConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._fetchSubmodules = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._fetchSubmodules = value.fetchSubmodules; } } // fetch_submodules - computed: false, optional: false, required: true private _fetchSubmodules?: boolean | cdktf.IResolvable; public get fetchSubmodules() { return this.getBooleanAttribute('fetch_submodules') as any; } public set fetchSubmodules(value: boolean | cdktf.IResolvable) { this._fetchSubmodules = value; } // Temporarily expose input value. Use with caution. public get fetchSubmodulesInput() { return this._fetchSubmodules; } } export interface CodebuildProjectSecondarySources { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#buildspec CodebuildProject#buildspec} */ readonly buildspec?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#git_clone_depth CodebuildProject#git_clone_depth} */ readonly gitCloneDepth?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#insecure_ssl CodebuildProject#insecure_ssl} */ readonly insecureSsl?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#location CodebuildProject#location} */ readonly location?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#report_build_status CodebuildProject#report_build_status} */ readonly reportBuildStatus?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#source_identifier CodebuildProject#source_identifier} */ readonly sourceIdentifier: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#type CodebuildProject#type} */ readonly type: string; /** * auth block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#auth CodebuildProject#auth} */ readonly auth?: CodebuildProjectSecondarySourcesAuth; /** * build_status_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#build_status_config CodebuildProject#build_status_config} */ readonly buildStatusConfig?: CodebuildProjectSecondarySourcesBuildStatusConfig; /** * git_submodules_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#git_submodules_config CodebuildProject#git_submodules_config} */ readonly gitSubmodulesConfig?: CodebuildProjectSecondarySourcesGitSubmodulesConfig; } export function codebuildProjectSecondarySourcesToTerraform(struct?: CodebuildProjectSecondarySources): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { buildspec: cdktf.stringToTerraform(struct!.buildspec), git_clone_depth: cdktf.numberToTerraform(struct!.gitCloneDepth), insecure_ssl: cdktf.booleanToTerraform(struct!.insecureSsl), location: cdktf.stringToTerraform(struct!.location), report_build_status: cdktf.booleanToTerraform(struct!.reportBuildStatus), source_identifier: cdktf.stringToTerraform(struct!.sourceIdentifier), type: cdktf.stringToTerraform(struct!.type), auth: codebuildProjectSecondarySourcesAuthToTerraform(struct!.auth), build_status_config: codebuildProjectSecondarySourcesBuildStatusConfigToTerraform(struct!.buildStatusConfig), git_submodules_config: codebuildProjectSecondarySourcesGitSubmodulesConfigToTerraform(struct!.gitSubmodulesConfig), } } export interface CodebuildProjectSourceAuth { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#resource CodebuildProject#resource} */ readonly resource?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#type CodebuildProject#type} */ readonly type: string; } export function codebuildProjectSourceAuthToTerraform(struct?: CodebuildProjectSourceAuthOutputReference | CodebuildProjectSourceAuth): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { resource: cdktf.stringToTerraform(struct!.resource), type: cdktf.stringToTerraform(struct!.type), } } export class CodebuildProjectSourceAuthOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectSourceAuth | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._resource !== undefined) { hasAnyValues = true; internalValueResult.resource = this._resource; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectSourceAuth | undefined) { if (value === undefined) { this.isEmptyObject = false; this._resource = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._resource = value.resource; this._type = value.type; } } // resource - computed: false, optional: true, required: false private _resource?: string; public get resource() { return this.getStringAttribute('resource'); } public set resource(value: string) { this._resource = value; } public resetResource() { this._resource = undefined; } // Temporarily expose input value. Use with caution. public get resourceInput() { return this._resource; } // type - computed: false, optional: false, required: true private _type?: string; public get type() { return this.getStringAttribute('type'); } public set type(value: string) { this._type = value; } // Temporarily expose input value. Use with caution. public get typeInput() { return this._type; } } export interface CodebuildProjectSourceBuildStatusConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#context CodebuildProject#context} */ readonly context?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#target_url CodebuildProject#target_url} */ readonly targetUrl?: string; } export function codebuildProjectSourceBuildStatusConfigToTerraform(struct?: CodebuildProjectSourceBuildStatusConfigOutputReference | CodebuildProjectSourceBuildStatusConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { context: cdktf.stringToTerraform(struct!.context), target_url: cdktf.stringToTerraform(struct!.targetUrl), } } export class CodebuildProjectSourceBuildStatusConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectSourceBuildStatusConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._context !== undefined) { hasAnyValues = true; internalValueResult.context = this._context; } if (this._targetUrl !== undefined) { hasAnyValues = true; internalValueResult.targetUrl = this._targetUrl; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectSourceBuildStatusConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._context = undefined; this._targetUrl = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._context = value.context; this._targetUrl = value.targetUrl; } } // context - computed: false, optional: true, required: false private _context?: string; public get context() { return this.getStringAttribute('context'); } public set context(value: string) { this._context = value; } public resetContext() { this._context = undefined; } // Temporarily expose input value. Use with caution. public get contextInput() { return this._context; } // target_url - computed: false, optional: true, required: false private _targetUrl?: string; public get targetUrl() { return this.getStringAttribute('target_url'); } public set targetUrl(value: string) { this._targetUrl = value; } public resetTargetUrl() { this._targetUrl = undefined; } // Temporarily expose input value. Use with caution. public get targetUrlInput() { return this._targetUrl; } } export interface CodebuildProjectSourceGitSubmodulesConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#fetch_submodules CodebuildProject#fetch_submodules} */ readonly fetchSubmodules: boolean | cdktf.IResolvable; } export function codebuildProjectSourceGitSubmodulesConfigToTerraform(struct?: CodebuildProjectSourceGitSubmodulesConfigOutputReference | CodebuildProjectSourceGitSubmodulesConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { fetch_submodules: cdktf.booleanToTerraform(struct!.fetchSubmodules), } } export class CodebuildProjectSourceGitSubmodulesConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectSourceGitSubmodulesConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._fetchSubmodules !== undefined) { hasAnyValues = true; internalValueResult.fetchSubmodules = this._fetchSubmodules; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectSourceGitSubmodulesConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._fetchSubmodules = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._fetchSubmodules = value.fetchSubmodules; } } // fetch_submodules - computed: false, optional: false, required: true private _fetchSubmodules?: boolean | cdktf.IResolvable; public get fetchSubmodules() { return this.getBooleanAttribute('fetch_submodules') as any; } public set fetchSubmodules(value: boolean | cdktf.IResolvable) { this._fetchSubmodules = value; } // Temporarily expose input value. Use with caution. public get fetchSubmodulesInput() { return this._fetchSubmodules; } } export interface CodebuildProjectSource { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#buildspec CodebuildProject#buildspec} */ readonly buildspec?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#git_clone_depth CodebuildProject#git_clone_depth} */ readonly gitCloneDepth?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#insecure_ssl CodebuildProject#insecure_ssl} */ readonly insecureSsl?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#location CodebuildProject#location} */ readonly location?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#report_build_status CodebuildProject#report_build_status} */ readonly reportBuildStatus?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#type CodebuildProject#type} */ readonly type: string; /** * auth block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#auth CodebuildProject#auth} */ readonly auth?: CodebuildProjectSourceAuth; /** * build_status_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#build_status_config CodebuildProject#build_status_config} */ readonly buildStatusConfig?: CodebuildProjectSourceBuildStatusConfig; /** * git_submodules_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#git_submodules_config CodebuildProject#git_submodules_config} */ readonly gitSubmodulesConfig?: CodebuildProjectSourceGitSubmodulesConfig; } export function codebuildProjectSourceToTerraform(struct?: CodebuildProjectSourceOutputReference | CodebuildProjectSource): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { buildspec: cdktf.stringToTerraform(struct!.buildspec), git_clone_depth: cdktf.numberToTerraform(struct!.gitCloneDepth), insecure_ssl: cdktf.booleanToTerraform(struct!.insecureSsl), location: cdktf.stringToTerraform(struct!.location), report_build_status: cdktf.booleanToTerraform(struct!.reportBuildStatus), type: cdktf.stringToTerraform(struct!.type), auth: codebuildProjectSourceAuthToTerraform(struct!.auth), build_status_config: codebuildProjectSourceBuildStatusConfigToTerraform(struct!.buildStatusConfig), git_submodules_config: codebuildProjectSourceGitSubmodulesConfigToTerraform(struct!.gitSubmodulesConfig), } } export class CodebuildProjectSourceOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectSource | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._buildspec !== undefined) { hasAnyValues = true; internalValueResult.buildspec = this._buildspec; } if (this._gitCloneDepth !== undefined) { hasAnyValues = true; internalValueResult.gitCloneDepth = this._gitCloneDepth; } if (this._insecureSsl !== undefined) { hasAnyValues = true; internalValueResult.insecureSsl = this._insecureSsl; } if (this._location !== undefined) { hasAnyValues = true; internalValueResult.location = this._location; } if (this._reportBuildStatus !== undefined) { hasAnyValues = true; internalValueResult.reportBuildStatus = this._reportBuildStatus; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._auth?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.auth = this._auth?.internalValue; } if (this._buildStatusConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.buildStatusConfig = this._buildStatusConfig?.internalValue; } if (this._gitSubmodulesConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.gitSubmodulesConfig = this._gitSubmodulesConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectSource | undefined) { if (value === undefined) { this.isEmptyObject = false; this._buildspec = undefined; this._gitCloneDepth = undefined; this._insecureSsl = undefined; this._location = undefined; this._reportBuildStatus = undefined; this._type = undefined; this._auth.internalValue = undefined; this._buildStatusConfig.internalValue = undefined; this._gitSubmodulesConfig.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._buildspec = value.buildspec; this._gitCloneDepth = value.gitCloneDepth; this._insecureSsl = value.insecureSsl; this._location = value.location; this._reportBuildStatus = value.reportBuildStatus; this._type = value.type; this._auth.internalValue = value.auth; this._buildStatusConfig.internalValue = value.buildStatusConfig; this._gitSubmodulesConfig.internalValue = value.gitSubmodulesConfig; } } // buildspec - computed: false, optional: true, required: false private _buildspec?: string; public get buildspec() { return this.getStringAttribute('buildspec'); } public set buildspec(value: string) { this._buildspec = value; } public resetBuildspec() { this._buildspec = undefined; } // Temporarily expose input value. Use with caution. public get buildspecInput() { return this._buildspec; } // git_clone_depth - computed: false, optional: true, required: false private _gitCloneDepth?: number; public get gitCloneDepth() { return this.getNumberAttribute('git_clone_depth'); } public set gitCloneDepth(value: number) { this._gitCloneDepth = value; } public resetGitCloneDepth() { this._gitCloneDepth = undefined; } // Temporarily expose input value. Use with caution. public get gitCloneDepthInput() { return this._gitCloneDepth; } // insecure_ssl - computed: false, optional: true, required: false private _insecureSsl?: boolean | cdktf.IResolvable; public get insecureSsl() { return this.getBooleanAttribute('insecure_ssl') as any; } public set insecureSsl(value: boolean | cdktf.IResolvable) { this._insecureSsl = value; } public resetInsecureSsl() { this._insecureSsl = undefined; } // Temporarily expose input value. Use with caution. public get insecureSslInput() { return this._insecureSsl; } // location - computed: false, optional: true, required: false private _location?: string; public get location() { return this.getStringAttribute('location'); } public set location(value: string) { this._location = value; } public resetLocation() { this._location = undefined; } // Temporarily expose input value. Use with caution. public get locationInput() { return this._location; } // report_build_status - computed: false, optional: true, required: false private _reportBuildStatus?: boolean | cdktf.IResolvable; public get reportBuildStatus() { return this.getBooleanAttribute('report_build_status') as any; } public set reportBuildStatus(value: boolean | cdktf.IResolvable) { this._reportBuildStatus = value; } public resetReportBuildStatus() { this._reportBuildStatus = undefined; } // Temporarily expose input value. Use with caution. public get reportBuildStatusInput() { return this._reportBuildStatus; } // type - computed: false, optional: false, required: true private _type?: string; public get type() { return this.getStringAttribute('type'); } public set type(value: string) { this._type = value; } // Temporarily expose input value. Use with caution. public get typeInput() { return this._type; } // auth - computed: false, optional: true, required: false private _auth = new CodebuildProjectSourceAuthOutputReference(this as any, "auth", true); public get auth() { return this._auth; } public putAuth(value: CodebuildProjectSourceAuth) { this._auth.internalValue = value; } public resetAuth() { this._auth.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get authInput() { return this._auth.internalValue; } // build_status_config - computed: false, optional: true, required: false private _buildStatusConfig = new CodebuildProjectSourceBuildStatusConfigOutputReference(this as any, "build_status_config", true); public get buildStatusConfig() { return this._buildStatusConfig; } public putBuildStatusConfig(value: CodebuildProjectSourceBuildStatusConfig) { this._buildStatusConfig.internalValue = value; } public resetBuildStatusConfig() { this._buildStatusConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get buildStatusConfigInput() { return this._buildStatusConfig.internalValue; } // git_submodules_config - computed: false, optional: true, required: false private _gitSubmodulesConfig = new CodebuildProjectSourceGitSubmodulesConfigOutputReference(this as any, "git_submodules_config", true); public get gitSubmodulesConfig() { return this._gitSubmodulesConfig; } public putGitSubmodulesConfig(value: CodebuildProjectSourceGitSubmodulesConfig) { this._gitSubmodulesConfig.internalValue = value; } public resetGitSubmodulesConfig() { this._gitSubmodulesConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get gitSubmodulesConfigInput() { return this._gitSubmodulesConfig.internalValue; } } export interface CodebuildProjectVpcConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#security_group_ids CodebuildProject#security_group_ids} */ readonly securityGroupIds: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#subnets CodebuildProject#subnets} */ readonly subnets: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html#vpc_id CodebuildProject#vpc_id} */ readonly vpcId: string; } export function codebuildProjectVpcConfigToTerraform(struct?: CodebuildProjectVpcConfigOutputReference | CodebuildProjectVpcConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { security_group_ids: cdktf.listMapper(cdktf.stringToTerraform)(struct!.securityGroupIds), subnets: cdktf.listMapper(cdktf.stringToTerraform)(struct!.subnets), vpc_id: cdktf.stringToTerraform(struct!.vpcId), } } export class CodebuildProjectVpcConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): CodebuildProjectVpcConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._securityGroupIds !== undefined) { hasAnyValues = true; internalValueResult.securityGroupIds = this._securityGroupIds; } if (this._subnets !== undefined) { hasAnyValues = true; internalValueResult.subnets = this._subnets; } if (this._vpcId !== undefined) { hasAnyValues = true; internalValueResult.vpcId = this._vpcId; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CodebuildProjectVpcConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._securityGroupIds = undefined; this._subnets = undefined; this._vpcId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._securityGroupIds = value.securityGroupIds; this._subnets = value.subnets; this._vpcId = value.vpcId; } } // security_group_ids - computed: false, optional: false, required: true private _securityGroupIds?: string[]; public get securityGroupIds() { return this.getListAttribute('security_group_ids'); } public set securityGroupIds(value: string[]) { this._securityGroupIds = value; } // Temporarily expose input value. Use with caution. public get securityGroupIdsInput() { return this._securityGroupIds; } // subnets - computed: false, optional: false, required: true private _subnets?: string[]; public get subnets() { return this.getListAttribute('subnets'); } public set subnets(value: string[]) { this._subnets = value; } // Temporarily expose input value. Use with caution. public get subnetsInput() { return this._subnets; } // vpc_id - computed: false, optional: false, required: true private _vpcId?: string; public get vpcId() { return this.getStringAttribute('vpc_id'); } public set vpcId(value: string) { this._vpcId = value; } // Temporarily expose input value. Use with caution. public get vpcIdInput() { return this._vpcId; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html aws_codebuild_project} */ export class CodebuildProject extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_codebuild_project"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/codebuild_project.html aws_codebuild_project} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options CodebuildProjectConfig */ public constructor(scope: Construct, id: string, config: CodebuildProjectConfig) { super(scope, id, { terraformResourceType: 'aws_codebuild_project', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._badgeEnabled = config.badgeEnabled; this._buildTimeout = config.buildTimeout; this._concurrentBuildLimit = config.concurrentBuildLimit; this._description = config.description; this._encryptionKey = config.encryptionKey; this._name = config.name; this._queuedTimeout = config.queuedTimeout; this._serviceRole = config.serviceRole; this._sourceVersion = config.sourceVersion; this._tags = config.tags; this._tagsAll = config.tagsAll; this._artifacts.internalValue = config.artifacts; this._buildBatchConfig.internalValue = config.buildBatchConfig; this._cache.internalValue = config.cache; this._environment.internalValue = config.environment; this._fileSystemLocations = config.fileSystemLocations; this._logsConfig.internalValue = config.logsConfig; this._secondaryArtifacts = config.secondaryArtifacts; this._secondarySources = config.secondarySources; this._source.internalValue = config.source; this._vpcConfig.internalValue = config.vpcConfig; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // badge_enabled - computed: false, optional: true, required: false private _badgeEnabled?: boolean | cdktf.IResolvable; public get badgeEnabled() { return this.getBooleanAttribute('badge_enabled') as any; } public set badgeEnabled(value: boolean | cdktf.IResolvable) { this._badgeEnabled = value; } public resetBadgeEnabled() { this._badgeEnabled = undefined; } // Temporarily expose input value. Use with caution. public get badgeEnabledInput() { return this._badgeEnabled; } // badge_url - computed: true, optional: false, required: false public get badgeUrl() { return this.getStringAttribute('badge_url'); } // build_timeout - computed: false, optional: true, required: false private _buildTimeout?: number; public get buildTimeout() { return this.getNumberAttribute('build_timeout'); } public set buildTimeout(value: number) { this._buildTimeout = value; } public resetBuildTimeout() { this._buildTimeout = undefined; } // Temporarily expose input value. Use with caution. public get buildTimeoutInput() { return this._buildTimeout; } // concurrent_build_limit - computed: false, optional: true, required: false private _concurrentBuildLimit?: number; public get concurrentBuildLimit() { return this.getNumberAttribute('concurrent_build_limit'); } public set concurrentBuildLimit(value: number) { this._concurrentBuildLimit = value; } public resetConcurrentBuildLimit() { this._concurrentBuildLimit = undefined; } // Temporarily expose input value. Use with caution. public get concurrentBuildLimitInput() { return this._concurrentBuildLimit; } // description - computed: true, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // encryption_key - computed: true, optional: true, required: false private _encryptionKey?: string; public get encryptionKey() { return this.getStringAttribute('encryption_key'); } public set encryptionKey(value: string) { this._encryptionKey = value; } public resetEncryptionKey() { this._encryptionKey = undefined; } // Temporarily expose input value. Use with caution. public get encryptionKeyInput() { return this._encryptionKey; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // queued_timeout - computed: false, optional: true, required: false private _queuedTimeout?: number; public get queuedTimeout() { return this.getNumberAttribute('queued_timeout'); } public set queuedTimeout(value: number) { this._queuedTimeout = value; } public resetQueuedTimeout() { this._queuedTimeout = undefined; } // Temporarily expose input value. Use with caution. public get queuedTimeoutInput() { return this._queuedTimeout; } // service_role - computed: false, optional: false, required: true private _serviceRole?: string; public get serviceRole() { return this.getStringAttribute('service_role'); } public set serviceRole(value: string) { this._serviceRole = value; } // Temporarily expose input value. Use with caution. public get serviceRoleInput() { return this._serviceRole; } // source_version - computed: false, optional: true, required: false private _sourceVersion?: string; public get sourceVersion() { return this.getStringAttribute('source_version'); } public set sourceVersion(value: string) { this._sourceVersion = value; } public resetSourceVersion() { this._sourceVersion = undefined; } // Temporarily expose input value. Use with caution. public get sourceVersionInput() { return this._sourceVersion; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // artifacts - computed: false, optional: false, required: true private _artifacts = new CodebuildProjectArtifactsOutputReference(this as any, "artifacts", true); public get artifacts() { return this._artifacts; } public putArtifacts(value: CodebuildProjectArtifacts) { this._artifacts.internalValue = value; } // Temporarily expose input value. Use with caution. public get artifactsInput() { return this._artifacts.internalValue; } // build_batch_config - computed: false, optional: true, required: false private _buildBatchConfig = new CodebuildProjectBuildBatchConfigOutputReference(this as any, "build_batch_config", true); public get buildBatchConfig() { return this._buildBatchConfig; } public putBuildBatchConfig(value: CodebuildProjectBuildBatchConfig) { this._buildBatchConfig.internalValue = value; } public resetBuildBatchConfig() { this._buildBatchConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get buildBatchConfigInput() { return this._buildBatchConfig.internalValue; } // cache - computed: false, optional: true, required: false private _cache = new CodebuildProjectCacheOutputReference(this as any, "cache", true); public get cache() { return this._cache; } public putCache(value: CodebuildProjectCache) { this._cache.internalValue = value; } public resetCache() { this._cache.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get cacheInput() { return this._cache.internalValue; } // environment - computed: false, optional: false, required: true private _environment = new CodebuildProjectEnvironmentOutputReference(this as any, "environment", true); public get environment() { return this._environment; } public putEnvironment(value: CodebuildProjectEnvironment) { this._environment.internalValue = value; } // Temporarily expose input value. Use with caution. public get environmentInput() { return this._environment.internalValue; } // file_system_locations - computed: false, optional: true, required: false private _fileSystemLocations?: CodebuildProjectFileSystemLocations[]; public get fileSystemLocations() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('file_system_locations') as any; } public set fileSystemLocations(value: CodebuildProjectFileSystemLocations[]) { this._fileSystemLocations = value; } public resetFileSystemLocations() { this._fileSystemLocations = undefined; } // Temporarily expose input value. Use with caution. public get fileSystemLocationsInput() { return this._fileSystemLocations; } // logs_config - computed: false, optional: true, required: false private _logsConfig = new CodebuildProjectLogsConfigOutputReference(this as any, "logs_config", true); public get logsConfig() { return this._logsConfig; } public putLogsConfig(value: CodebuildProjectLogsConfig) { this._logsConfig.internalValue = value; } public resetLogsConfig() { this._logsConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get logsConfigInput() { return this._logsConfig.internalValue; } // secondary_artifacts - computed: false, optional: true, required: false private _secondaryArtifacts?: CodebuildProjectSecondaryArtifacts[]; public get secondaryArtifacts() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('secondary_artifacts') as any; } public set secondaryArtifacts(value: CodebuildProjectSecondaryArtifacts[]) { this._secondaryArtifacts = value; } public resetSecondaryArtifacts() { this._secondaryArtifacts = undefined; } // Temporarily expose input value. Use with caution. public get secondaryArtifactsInput() { return this._secondaryArtifacts; } // secondary_sources - computed: false, optional: true, required: false private _secondarySources?: CodebuildProjectSecondarySources[]; public get secondarySources() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('secondary_sources') as any; } public set secondarySources(value: CodebuildProjectSecondarySources[]) { this._secondarySources = value; } public resetSecondarySources() { this._secondarySources = undefined; } // Temporarily expose input value. Use with caution. public get secondarySourcesInput() { return this._secondarySources; } // source - computed: false, optional: false, required: true private _source = new CodebuildProjectSourceOutputReference(this as any, "source", true); public get source() { return this._source; } public putSource(value: CodebuildProjectSource) { this._source.internalValue = value; } // Temporarily expose input value. Use with caution. public get sourceInput() { return this._source.internalValue; } // vpc_config - computed: false, optional: true, required: false private _vpcConfig = new CodebuildProjectVpcConfigOutputReference(this as any, "vpc_config", true); public get vpcConfig() { return this._vpcConfig; } public putVpcConfig(value: CodebuildProjectVpcConfig) { this._vpcConfig.internalValue = value; } public resetVpcConfig() { this._vpcConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get vpcConfigInput() { return this._vpcConfig.internalValue; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { badge_enabled: cdktf.booleanToTerraform(this._badgeEnabled), build_timeout: cdktf.numberToTerraform(this._buildTimeout), concurrent_build_limit: cdktf.numberToTerraform(this._concurrentBuildLimit), description: cdktf.stringToTerraform(this._description), encryption_key: cdktf.stringToTerraform(this._encryptionKey), name: cdktf.stringToTerraform(this._name), queued_timeout: cdktf.numberToTerraform(this._queuedTimeout), service_role: cdktf.stringToTerraform(this._serviceRole), source_version: cdktf.stringToTerraform(this._sourceVersion), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), artifacts: codebuildProjectArtifactsToTerraform(this._artifacts.internalValue), build_batch_config: codebuildProjectBuildBatchConfigToTerraform(this._buildBatchConfig.internalValue), cache: codebuildProjectCacheToTerraform(this._cache.internalValue), environment: codebuildProjectEnvironmentToTerraform(this._environment.internalValue), file_system_locations: cdktf.listMapper(codebuildProjectFileSystemLocationsToTerraform)(this._fileSystemLocations), logs_config: codebuildProjectLogsConfigToTerraform(this._logsConfig.internalValue), secondary_artifacts: cdktf.listMapper(codebuildProjectSecondaryArtifactsToTerraform)(this._secondaryArtifacts), secondary_sources: cdktf.listMapper(codebuildProjectSecondarySourcesToTerraform)(this._secondarySources), source: codebuildProjectSourceToTerraform(this._source.internalValue), vpc_config: codebuildProjectVpcConfigToTerraform(this._vpcConfig.internalValue), }; } }