UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,116 lines 177 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; Object.defineProperty(exports, "__esModule", { value: true }); exports.CodegurureviewerRepositoryAssociation = exports.CodegurureviewerRepositoryAssociationTimeoutsOutputReference = exports.CodegurureviewerRepositoryAssociationRepositoryOutputReference = exports.CodegurureviewerRepositoryAssociationRepositoryS3BucketOutputReference = exports.CodegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerOutputReference = exports.CodegurureviewerRepositoryAssociationRepositoryCodecommitOutputReference = exports.CodegurureviewerRepositoryAssociationRepositoryBitbucketOutputReference = exports.CodegurureviewerRepositoryAssociationKmsKeyDetailsOutputReference = exports.CodegurureviewerRepositoryAssociationS3RepositoryDetailsList = exports.CodegurureviewerRepositoryAssociationS3RepositoryDetailsOutputReference = exports.CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsList = exports.CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsOutputReference = void 0; exports.codegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsToTerraform = codegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsToTerraform; exports.codegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsToHclTerraform = codegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsToHclTerraform; exports.codegurureviewerRepositoryAssociationS3RepositoryDetailsToTerraform = codegurureviewerRepositoryAssociationS3RepositoryDetailsToTerraform; exports.codegurureviewerRepositoryAssociationS3RepositoryDetailsToHclTerraform = codegurureviewerRepositoryAssociationS3RepositoryDetailsToHclTerraform; exports.codegurureviewerRepositoryAssociationKmsKeyDetailsToTerraform = codegurureviewerRepositoryAssociationKmsKeyDetailsToTerraform; exports.codegurureviewerRepositoryAssociationKmsKeyDetailsToHclTerraform = codegurureviewerRepositoryAssociationKmsKeyDetailsToHclTerraform; exports.codegurureviewerRepositoryAssociationRepositoryBitbucketToTerraform = codegurureviewerRepositoryAssociationRepositoryBitbucketToTerraform; exports.codegurureviewerRepositoryAssociationRepositoryBitbucketToHclTerraform = codegurureviewerRepositoryAssociationRepositoryBitbucketToHclTerraform; exports.codegurureviewerRepositoryAssociationRepositoryCodecommitToTerraform = codegurureviewerRepositoryAssociationRepositoryCodecommitToTerraform; exports.codegurureviewerRepositoryAssociationRepositoryCodecommitToHclTerraform = codegurureviewerRepositoryAssociationRepositoryCodecommitToHclTerraform; exports.codegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerToTerraform = codegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerToTerraform; exports.codegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerToHclTerraform = codegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerToHclTerraform; exports.codegurureviewerRepositoryAssociationRepositoryS3BucketToTerraform = codegurureviewerRepositoryAssociationRepositoryS3BucketToTerraform; exports.codegurureviewerRepositoryAssociationRepositoryS3BucketToHclTerraform = codegurureviewerRepositoryAssociationRepositoryS3BucketToHclTerraform; exports.codegurureviewerRepositoryAssociationRepositoryToTerraform = codegurureviewerRepositoryAssociationRepositoryToTerraform; exports.codegurureviewerRepositoryAssociationRepositoryToHclTerraform = codegurureviewerRepositoryAssociationRepositoryToHclTerraform; exports.codegurureviewerRepositoryAssociationTimeoutsToTerraform = codegurureviewerRepositoryAssociationTimeoutsToTerraform; exports.codegurureviewerRepositoryAssociationTimeoutsToHclTerraform = codegurureviewerRepositoryAssociationTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function codegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {}; } function codegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = {}; return attrs; } class CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // build_artifacts_object_key - computed: true, optional: false, required: false get buildArtifactsObjectKey() { return this.getStringAttribute('build_artifacts_object_key'); } // source_code_artifacts_object_key - computed: true, optional: false, required: false get sourceCodeArtifactsObjectKey() { return this.getStringAttribute('source_code_artifacts_object_key'); } } exports.CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsOutputReference = CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsOutputReference; _a = JSII_RTTI_SYMBOL_1; CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsOutputReference[_a] = { fqn: "@cdktf/provider-aws.codegurureviewerRepositoryAssociation.CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsOutputReference", version: "21.22.1" }; class CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsList = CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsList; _b = JSII_RTTI_SYMBOL_1; CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsList[_b] = { fqn: "@cdktf/provider-aws.codegurureviewerRepositoryAssociation.CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsList", version: "21.22.1" }; function codegurureviewerRepositoryAssociationS3RepositoryDetailsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {}; } function codegurureviewerRepositoryAssociationS3RepositoryDetailsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = {}; return attrs; } class CodegurureviewerRepositoryAssociationS3RepositoryDetailsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // code_artifacts - computed: true, optional: false, required: false this._codeArtifacts = new CodegurureviewerRepositoryAssociationS3RepositoryDetailsCodeArtifactsList(this, "code_artifacts", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // bucket_name - computed: true, optional: false, required: false get bucketName() { return this.getStringAttribute('bucket_name'); } get codeArtifacts() { return this._codeArtifacts; } } exports.CodegurureviewerRepositoryAssociationS3RepositoryDetailsOutputReference = CodegurureviewerRepositoryAssociationS3RepositoryDetailsOutputReference; _c = JSII_RTTI_SYMBOL_1; CodegurureviewerRepositoryAssociationS3RepositoryDetailsOutputReference[_c] = { fqn: "@cdktf/provider-aws.codegurureviewerRepositoryAssociation.CodegurureviewerRepositoryAssociationS3RepositoryDetailsOutputReference", version: "21.22.1" }; class CodegurureviewerRepositoryAssociationS3RepositoryDetailsList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new CodegurureviewerRepositoryAssociationS3RepositoryDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CodegurureviewerRepositoryAssociationS3RepositoryDetailsList = CodegurureviewerRepositoryAssociationS3RepositoryDetailsList; _d = JSII_RTTI_SYMBOL_1; CodegurureviewerRepositoryAssociationS3RepositoryDetailsList[_d] = { fqn: "@cdktf/provider-aws.codegurureviewerRepositoryAssociation.CodegurureviewerRepositoryAssociationS3RepositoryDetailsList", version: "21.22.1" }; function codegurureviewerRepositoryAssociationKmsKeyDetailsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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_option: cdktf.stringToTerraform(struct.encryptionOption), kms_key_id: cdktf.stringToTerraform(struct.kmsKeyId), }; } function codegurureviewerRepositoryAssociationKmsKeyDetailsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { encryption_option: { value: cdktf.stringToHclTerraform(struct.encryptionOption), isBlock: false, type: "simple", storageClassType: "string", }, kms_key_id: { value: cdktf.stringToHclTerraform(struct.kmsKeyId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CodegurureviewerRepositoryAssociationKmsKeyDetailsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._encryptionOption !== undefined) { hasAnyValues = true; internalValueResult.encryptionOption = this._encryptionOption; } if (this._kmsKeyId !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyId = this._kmsKeyId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._encryptionOption = undefined; this._kmsKeyId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._encryptionOption = value.encryptionOption; this._kmsKeyId = value.kmsKeyId; } } get encryptionOption() { return this.getStringAttribute('encryption_option'); } set encryptionOption(value) { this._encryptionOption = value; } resetEncryptionOption() { this._encryptionOption = undefined; } // Temporarily expose input value. Use with caution. get encryptionOptionInput() { return this._encryptionOption; } get kmsKeyId() { return this.getStringAttribute('kms_key_id'); } set kmsKeyId(value) { this._kmsKeyId = value; } resetKmsKeyId() { this._kmsKeyId = undefined; } // Temporarily expose input value. Use with caution. get kmsKeyIdInput() { return this._kmsKeyId; } } exports.CodegurureviewerRepositoryAssociationKmsKeyDetailsOutputReference = CodegurureviewerRepositoryAssociationKmsKeyDetailsOutputReference; _e = JSII_RTTI_SYMBOL_1; CodegurureviewerRepositoryAssociationKmsKeyDetailsOutputReference[_e] = { fqn: "@cdktf/provider-aws.codegurureviewerRepositoryAssociation.CodegurureviewerRepositoryAssociationKmsKeyDetailsOutputReference", version: "21.22.1" }; function codegurureviewerRepositoryAssociationRepositoryBitbucketToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { connection_arn: cdktf.stringToTerraform(struct.connectionArn), name: cdktf.stringToTerraform(struct.name), owner: cdktf.stringToTerraform(struct.owner), }; } function codegurureviewerRepositoryAssociationRepositoryBitbucketToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { connection_arn: { value: cdktf.stringToHclTerraform(struct.connectionArn), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, owner: { value: cdktf.stringToHclTerraform(struct.owner), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CodegurureviewerRepositoryAssociationRepositoryBitbucketOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._connectionArn !== undefined) { hasAnyValues = true; internalValueResult.connectionArn = this._connectionArn; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._owner !== undefined) { hasAnyValues = true; internalValueResult.owner = this._owner; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._connectionArn = undefined; this._name = undefined; this._owner = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._connectionArn = value.connectionArn; this._name = value.name; this._owner = value.owner; } } get connectionArn() { return this.getStringAttribute('connection_arn'); } set connectionArn(value) { this._connectionArn = value; } // Temporarily expose input value. Use with caution. get connectionArnInput() { return this._connectionArn; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get owner() { return this.getStringAttribute('owner'); } set owner(value) { this._owner = value; } // Temporarily expose input value. Use with caution. get ownerInput() { return this._owner; } } exports.CodegurureviewerRepositoryAssociationRepositoryBitbucketOutputReference = CodegurureviewerRepositoryAssociationRepositoryBitbucketOutputReference; _f = JSII_RTTI_SYMBOL_1; CodegurureviewerRepositoryAssociationRepositoryBitbucketOutputReference[_f] = { fqn: "@cdktf/provider-aws.codegurureviewerRepositoryAssociation.CodegurureviewerRepositoryAssociationRepositoryBitbucketOutputReference", version: "21.22.1" }; function codegurureviewerRepositoryAssociationRepositoryCodecommitToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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), }; } function codegurureviewerRepositoryAssociationRepositoryCodecommitToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CodegurureviewerRepositoryAssociationRepositoryCodecommitOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._name = value.name; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.CodegurureviewerRepositoryAssociationRepositoryCodecommitOutputReference = CodegurureviewerRepositoryAssociationRepositoryCodecommitOutputReference; _g = JSII_RTTI_SYMBOL_1; CodegurureviewerRepositoryAssociationRepositoryCodecommitOutputReference[_g] = { fqn: "@cdktf/provider-aws.codegurureviewerRepositoryAssociation.CodegurureviewerRepositoryAssociationRepositoryCodecommitOutputReference", version: "21.22.1" }; function codegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { connection_arn: cdktf.stringToTerraform(struct.connectionArn), name: cdktf.stringToTerraform(struct.name), owner: cdktf.stringToTerraform(struct.owner), }; } function codegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { connection_arn: { value: cdktf.stringToHclTerraform(struct.connectionArn), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, owner: { value: cdktf.stringToHclTerraform(struct.owner), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CodegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._connectionArn !== undefined) { hasAnyValues = true; internalValueResult.connectionArn = this._connectionArn; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._owner !== undefined) { hasAnyValues = true; internalValueResult.owner = this._owner; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._connectionArn = undefined; this._name = undefined; this._owner = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._connectionArn = value.connectionArn; this._name = value.name; this._owner = value.owner; } } get connectionArn() { return this.getStringAttribute('connection_arn'); } set connectionArn(value) { this._connectionArn = value; } // Temporarily expose input value. Use with caution. get connectionArnInput() { return this._connectionArn; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get owner() { return this.getStringAttribute('owner'); } set owner(value) { this._owner = value; } // Temporarily expose input value. Use with caution. get ownerInput() { return this._owner; } } exports.CodegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerOutputReference = CodegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerOutputReference; _h = JSII_RTTI_SYMBOL_1; CodegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerOutputReference[_h] = { fqn: "@cdktf/provider-aws.codegurureviewerRepositoryAssociation.CodegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerOutputReference", version: "21.22.1" }; function codegurureviewerRepositoryAssociationRepositoryS3BucketToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { bucket_name: cdktf.stringToTerraform(struct.bucketName), name: cdktf.stringToTerraform(struct.name), }; } function codegurureviewerRepositoryAssociationRepositoryS3BucketToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { bucket_name: { value: cdktf.stringToHclTerraform(struct.bucketName), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CodegurureviewerRepositoryAssociationRepositoryS3BucketOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._bucketName !== undefined) { hasAnyValues = true; internalValueResult.bucketName = this._bucketName; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._bucketName = undefined; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._bucketName = value.bucketName; this._name = value.name; } } get bucketName() { return this.getStringAttribute('bucket_name'); } set bucketName(value) { this._bucketName = value; } // Temporarily expose input value. Use with caution. get bucketNameInput() { return this._bucketName; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.CodegurureviewerRepositoryAssociationRepositoryS3BucketOutputReference = CodegurureviewerRepositoryAssociationRepositoryS3BucketOutputReference; _j = JSII_RTTI_SYMBOL_1; CodegurureviewerRepositoryAssociationRepositoryS3BucketOutputReference[_j] = { fqn: "@cdktf/provider-aws.codegurureviewerRepositoryAssociation.CodegurureviewerRepositoryAssociationRepositoryS3BucketOutputReference", version: "21.22.1" }; function codegurureviewerRepositoryAssociationRepositoryToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { bitbucket: codegurureviewerRepositoryAssociationRepositoryBitbucketToTerraform(struct.bitbucket), codecommit: codegurureviewerRepositoryAssociationRepositoryCodecommitToTerraform(struct.codecommit), github_enterprise_server: codegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerToTerraform(struct.githubEnterpriseServer), s3_bucket: codegurureviewerRepositoryAssociationRepositoryS3BucketToTerraform(struct.s3Bucket), }; } function codegurureviewerRepositoryAssociationRepositoryToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { bitbucket: { value: codegurureviewerRepositoryAssociationRepositoryBitbucketToHclTerraform(struct.bitbucket), isBlock: true, type: "list", storageClassType: "CodegurureviewerRepositoryAssociationRepositoryBitbucketList", }, codecommit: { value: codegurureviewerRepositoryAssociationRepositoryCodecommitToHclTerraform(struct.codecommit), isBlock: true, type: "list", storageClassType: "CodegurureviewerRepositoryAssociationRepositoryCodecommitList", }, github_enterprise_server: { value: codegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerToHclTerraform(struct.githubEnterpriseServer), isBlock: true, type: "list", storageClassType: "CodegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerList", }, s3_bucket: { value: codegurureviewerRepositoryAssociationRepositoryS3BucketToHclTerraform(struct.s3Bucket), isBlock: true, type: "list", storageClassType: "CodegurureviewerRepositoryAssociationRepositoryS3BucketList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CodegurureviewerRepositoryAssociationRepositoryOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // bitbucket - computed: false, optional: true, required: false this._bitbucket = new CodegurureviewerRepositoryAssociationRepositoryBitbucketOutputReference(this, "bitbucket"); // codecommit - computed: false, optional: true, required: false this._codecommit = new CodegurureviewerRepositoryAssociationRepositoryCodecommitOutputReference(this, "codecommit"); // github_enterprise_server - computed: false, optional: true, required: false this._githubEnterpriseServer = new CodegurureviewerRepositoryAssociationRepositoryGithubEnterpriseServerOutputReference(this, "github_enterprise_server"); // s3_bucket - computed: false, optional: true, required: false this._s3Bucket = new CodegurureviewerRepositoryAssociationRepositoryS3BucketOutputReference(this, "s3_bucket"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._bitbucket?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.bitbucket = this._bitbucket?.internalValue; } if (this._codecommit?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.codecommit = this._codecommit?.internalValue; } if (this._githubEnterpriseServer?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.githubEnterpriseServer = this._githubEnterpriseServer?.internalValue; } if (this._s3Bucket?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.s3Bucket = this._s3Bucket?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._bitbucket.internalValue = undefined; this._codecommit.internalValue = undefined; this._githubEnterpriseServer.internalValue = undefined; this._s3Bucket.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._bitbucket.internalValue = value.bitbucket; this._codecommit.internalValue = value.codecommit; this._githubEnterpriseServer.internalValue = value.githubEnterpriseServer; this._s3Bucket.internalValue = value.s3Bucket; } } get bitbucket() { return this._bitbucket; } putBitbucket(value) { this._bitbucket.internalValue = value; } resetBitbucket() { this._bitbucket.internalValue = undefined; } // Temporarily expose input value. Use with caution. get bitbucketInput() { return this._bitbucket.internalValue; } get codecommit() { return this._codecommit; } putCodecommit(value) { this._codecommit.internalValue = value; } resetCodecommit() { this._codecommit.internalValue = undefined; } // Temporarily expose input value. Use with caution. get codecommitInput() { return this._codecommit.internalValue; } get githubEnterpriseServer() { return this._githubEnterpriseServer; } putGithubEnterpriseServer(value) { this._githubEnterpriseServer.internalValue = value; } resetGithubEnterpriseServer() { this._githubEnterpriseServer.internalValue = undefined; } // Temporarily expose input value. Use with caution. get githubEnterpriseServerInput() { return this._githubEnterpriseServer.internalValue; } get s3Bucket() { return this._s3Bucket; } putS3Bucket(value) { this._s3Bucket.internalValue = value; } resetS3Bucket() { this._s3Bucket.internalValue = undefined; } // Temporarily expose input value. Use with caution. get s3BucketInput() { return this._s3Bucket.internalValue; } } exports.CodegurureviewerRepositoryAssociationRepositoryOutputReference = CodegurureviewerRepositoryAssociationRepositoryOutputReference; _k = JSII_RTTI_SYMBOL_1; CodegurureviewerRepositoryAssociationRepositoryOutputReference[_k] = { fqn: "@cdktf/provider-aws.codegurureviewerRepositoryAssociation.CodegurureviewerRepositoryAssociationRepositoryOutputReference", version: "21.22.1" }; function codegurureviewerRepositoryAssociationTimeoutsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { create: cdktf.stringToTerraform(struct.create), delete: cdktf.stringToTerraform(struct.delete), update: cdktf.stringToTerraform(struct.update), }; } function codegurureviewerRepositoryAssociationTimeoutsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CodegurureviewerRepositoryAssociationTimeoutsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._update = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._create = value.create; this._delete = value.delete; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.CodegurureviewerRepositoryAssociationTimeoutsOutputReference = CodegurureviewerRepositoryAssociationTimeoutsOutputReference; _l = JSII_RTTI_SYMBOL_1; CodegurureviewerRepositoryAssociationTimeoutsOutputReference[_l] = { fqn: "@cdktf/provider-aws.codegurureviewerRepositoryAssociation.CodegurureviewerRepositoryAssociationTimeoutsOutputReference", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/codegurureviewer_repository_association aws_codegurureviewer_repository_association} */ class CodegurureviewerRepositoryAssociation extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a CodegurureviewerRepositoryAssociation resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the CodegurureviewerRepositoryAssociation to import * @param importFromId The id of the existing CodegurureviewerRepositoryAssociation that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/codegurureviewer_repository_association#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the CodegurureviewerRepositoryAssociation to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_codegurureviewer_repository_association", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/codegurureviewer_repository_association aws_codegurureviewer_repository_association} 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 CodegurureviewerRepositoryAssociationConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_codegurureviewer_repository_association', terraformGeneratorMetadata: { providerName: 'aws', providerVersion: '6.25.0', providerVersionConstraint: '~> 6.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // s3_repository_details - computed: true, optional: false, required: false this._s3RepositoryDetails = new CodegurureviewerRepositoryAssociationS3RepositoryDetailsList(this, "s3_repository_details", false); // kms_key_details - computed: false, optional: true, required: false this._kmsKeyDetails = new CodegurureviewerRepositoryAssociationKmsKeyDetailsOutputReference(this, "kms_key_details"); // repository - computed: false, optional: false, required: true this._repository = new CodegurureviewerRepositoryAssociationRepositoryOutputReference(this, "repository"); // timeouts - computed: false, optional: true, required: false this._timeouts = new CodegurureviewerRepositoryAssociationTimeoutsOutputReference(this, "timeouts"); this._id = config.id; this._region = config.region; this._tags = config.tags; this._tagsAll = config.tagsAll; this._kmsKeyDetails.internalValue = config.kmsKeyDetails; this._repository.internalValue = config.repository; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false get arn() { return this.getStringAttribute('arn'); } // association_id - computed: true, optional: false, required: false get associationId() { return this.getStringAttribute('association_id'); } // connection_arn - computed: true, optional: false, required: false get connectionArn() { return this.getStringAttribute('connection_arn'); } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // owner - computed: true, optional: false, required: false get owner() { return this.getStringAttribute('owner'); } // provider_type - computed: true, optional: false, required: false get providerType() { return this.getStringAttribute('provider_type'); } get region() { return this.getStringAttribute('region'); } set region(value) { this._region = value; } resetRegion() { this._region = undefined; } // Temporarily expose input value. Use with caution. get regionInput() { return this._region; } get s3RepositoryDetails() { return this._s3RepositoryDetails; } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } // state_reason - computed: true, optional: false, required: false get stateReason() { return this.getStringAttribute('state_reason'); } get tags() { return this.getStringMapAttribute('tags'); } set tags(value) { this._tags = value; } resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. get tagsInput() { return this._tags; } get tagsAll() { return this.getStringMapAttribute('tags_all'); } set tagsAll(value) { this._tagsAll = value; } resetTagsAll()