Skip to content

Commit

Permalink
chore!: update to cdktf 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Mar 30, 2022
1 parent 1a04de3 commit c540cd4
Show file tree
Hide file tree
Showing 1,254 changed files with 38,398 additions and 24,198 deletions.
10 changes: 5 additions & 5 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { CdktfAwsCdkProject } from "./projen";

const project = new CdktfAwsCdkProject({
terraformProvider: "aws@~> 3.0",
cdktfVersion: '0.9.4',
constructsVersion: "^10.0.0",
cdktfVersion: '0.10.0',
constructsVersion: "^10.0.25",
minNodeVersion: "14.17.0",
projenrcTs: true
});
Expand Down
10 changes: 5 additions & 5 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/aws/accessanalyzer/accessanalyzer-analyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class AccessanalyzerAnalyzer extends cdktf.TerraformResource {
// =================
// STATIC PROPERTIES
// =================
public static readonly tfResourceType: string = "aws_accessanalyzer_analyzer";
public static readonly tfResourceType = "aws_accessanalyzer_analyzer";

// ===========
// INITIALIZER
Expand All @@ -50,7 +50,9 @@ export class AccessanalyzerAnalyzer extends cdktf.TerraformResource {
super(scope, id, {
terraformResourceType: 'aws_accessanalyzer_analyzer',
terraformGeneratorMetadata: {
providerName: 'aws'
providerName: 'aws',
providerVersion: '3.75.1',
providerVersionConstraint: '~> 3.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
Expand Down
6 changes: 4 additions & 2 deletions src/aws/account-alternate-contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class AccountAlternateContact extends cdktf.TerraformResource {
// =================
// STATIC PROPERTIES
// =================
public static readonly tfResourceType: string = "aws_account_alternate_contact";
public static readonly tfResourceType = "aws_account_alternate_contact";

// ===========
// INITIALIZER
Expand All @@ -58,7 +58,9 @@ export class AccountAlternateContact extends cdktf.TerraformResource {
super(scope, id, {
terraformResourceType: 'aws_account_alternate_contact',
terraformGeneratorMetadata: {
providerName: 'aws'
providerName: 'aws',
providerVersion: '3.75.1',
providerVersionConstraint: '~> 3.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
Expand Down
13 changes: 7 additions & 6 deletions src/aws/acm/acm-certificate-validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ export class AcmCertificateValidationTimeoutsOutputReference extends cdktf.Compl
/**
* @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.IInterpolatingParent, terraformAttribute: string, isSingleItem: boolean) {
super(terraformResource, terraformAttribute, isSingleItem);
public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
super(terraformResource, terraformAttribute, false, 0);
}

public get internalValue(): AcmCertificateValidationTimeouts | undefined {
Expand Down Expand Up @@ -97,7 +96,7 @@ export class AcmCertificateValidation extends cdktf.TerraformResource {
// =================
// STATIC PROPERTIES
// =================
public static readonly tfResourceType: string = "aws_acm_certificate_validation";
public static readonly tfResourceType = "aws_acm_certificate_validation";

// ===========
// INITIALIZER
Expand All @@ -114,7 +113,9 @@ export class AcmCertificateValidation extends cdktf.TerraformResource {
super(scope, id, {
terraformResourceType: 'aws_acm_certificate_validation',
terraformGeneratorMetadata: {
providerName: 'aws'
providerName: 'aws',
providerVersion: '3.75.1',
providerVersionConstraint: '~> 3.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
Expand Down Expand Up @@ -165,7 +166,7 @@ export class AcmCertificateValidation extends cdktf.TerraformResource {
}

// timeouts - computed: false, optional: true, required: false
private _timeouts = new AcmCertificateValidationTimeoutsOutputReference(this, "timeouts", true);
private _timeouts = new AcmCertificateValidationTimeoutsOutputReference(this, "timeouts");
public get timeouts() {
return this._timeouts;
}
Expand Down
77 changes: 68 additions & 9 deletions src/aws/acm/acm-certificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,45 @@ export interface AcmCertificateConfig extends cdktf.TerraformMetaArguments {
*/
readonly options?: AcmCertificateOptions;
}
export class AcmCertificateDomainValidationOptions extends cdktf.ComplexComputedList {
export interface AcmCertificateDomainValidationOptions {
}

export function acmCertificateDomainValidationOptionsToTerraform(struct?: AcmCertificateDomainValidationOptions): any {
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 {
}
}

export class AcmCertificateDomainValidationOptionsOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;

/**
* @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)
*/
public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
}

public get internalValue(): AcmCertificateDomainValidationOptions | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
return hasAnyValues ? internalValueResult : undefined;
}

public set internalValue(value: AcmCertificateDomainValidationOptions | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}

// domain_name - computed: true, optional: false, required: false
public get domainName() {
Expand All @@ -72,6 +110,25 @@ export class AcmCertificateDomainValidationOptions extends cdktf.ComplexComputed
return this.getStringAttribute('resource_record_value');
}
}

export class AcmCertificateDomainValidationOptionsList 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(protected terraformResource: cdktf.IInterpolatingParent, protected terraformAttribute: string, protected wrapsSet: boolean) {
super(terraformResource, terraformAttribute, wrapsSet)
}

/**
* @param index the index of the item to return
*/
public get(index: number): AcmCertificateDomainValidationOptionsOutputReference {
return new AcmCertificateDomainValidationOptionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface AcmCertificateOptions {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#certificate_transparency_logging_preference AcmCertificate#certificate_transparency_logging_preference}
Expand All @@ -95,10 +152,9 @@ export class AcmCertificateOptionsOutputReference extends cdktf.ComplexObject {
/**
* @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.IInterpolatingParent, terraformAttribute: string, isSingleItem: boolean) {
super(terraformResource, terraformAttribute, isSingleItem);
public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
super(terraformResource, terraformAttribute, false, 0);
}

public get internalValue(): AcmCertificateOptions | undefined {
Expand Down Expand Up @@ -147,7 +203,7 @@ export class AcmCertificate extends cdktf.TerraformResource {
// =================
// STATIC PROPERTIES
// =================
public static readonly tfResourceType: string = "aws_acm_certificate";
public static readonly tfResourceType = "aws_acm_certificate";

// ===========
// INITIALIZER
Expand All @@ -164,7 +220,9 @@ export class AcmCertificate extends cdktf.TerraformResource {
super(scope, id, {
terraformResourceType: 'aws_acm_certificate',
terraformGeneratorMetadata: {
providerName: 'aws'
providerName: 'aws',
providerVersion: '3.75.1',
providerVersionConstraint: '~> 3.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
Expand Down Expand Up @@ -257,8 +315,9 @@ export class AcmCertificate extends cdktf.TerraformResource {
}

// domain_validation_options - computed: true, optional: false, required: false
public domainValidationOptions(index: string) {
return new AcmCertificateDomainValidationOptions(this, 'domain_validation_options', index, true);
private _domainValidationOptions = new AcmCertificateDomainValidationOptionsList(this, "domain_validation_options", true);
public get domainValidationOptions() {
return this._domainValidationOptions;
}

// id - computed: true, optional: true, required: false
Expand Down Expand Up @@ -357,7 +416,7 @@ export class AcmCertificate extends cdktf.TerraformResource {
}

// options - computed: false, optional: true, required: false
private _options = new AcmCertificateOptionsOutputReference(this, "options", true);
private _options = new AcmCertificateOptionsOutputReference(this, "options");
public get options() {
return this._options;
}
Expand Down
6 changes: 4 additions & 2 deletions src/aws/acm/acmpca-certificate-authority-certificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class AcmpcaCertificateAuthorityCertificate extends cdktf.TerraformResour
// =================
// STATIC PROPERTIES
// =================
public static readonly tfResourceType: string = "aws_acmpca_certificate_authority_certificate";
public static readonly tfResourceType = "aws_acmpca_certificate_authority_certificate";

// ===========
// INITIALIZER
Expand All @@ -46,7 +46,9 @@ export class AcmpcaCertificateAuthorityCertificate extends cdktf.TerraformResour
super(scope, id, {
terraformResourceType: 'aws_acmpca_certificate_authority_certificate',
terraformGeneratorMetadata: {
providerName: 'aws'
providerName: 'aws',
providerVersion: '3.75.1',
providerVersionConstraint: '~> 3.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
Expand Down
Loading

0 comments on commit c540cd4

Please sign in to comment.