Skip to content

Commit

Permalink
Merge pull request #329 from terraform-cdk-providers/auto/provider-up…
Browse files Browse the repository at this point in the history
…grade

chore: upgrade provider
  • Loading branch information
skorfmann authored May 19, 2021
2 parents fe40965 + dddf63f commit 6cb955e
Show file tree
Hide file tree
Showing 59 changed files with 9,466 additions and 300 deletions.
4,980 changes: 4,696 additions & 284 deletions API.md

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions src/alb-listener-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import * as cdktf from 'cdktf';
export interface AlbListenerRuleConfig extends cdktf.TerraformMetaArguments {
readonly listenerArn: string;
readonly priority?: number;
readonly tags?: { [key: string]: string };
readonly tagsAll?: { [key: string]: string };
/** action block */
readonly action: AlbListenerRuleAction[];
/** condition block */
Expand Down Expand Up @@ -296,6 +298,8 @@ export class AlbListenerRule extends cdktf.TerraformResource {
});
this._listenerArn = config.listenerArn;
this._priority = config.priority;
this._tags = config.tags;
this._tagsAll = config.tagsAll;
this._action = config.action;
this._condition = config.condition;
}
Expand Down Expand Up @@ -343,6 +347,38 @@ export class AlbListenerRule extends cdktf.TerraformResource {
return this._priority
}

// tags - computed: false, optional: true, required: false
private _tags?: { [key: string]: string };
public get tags() {
return this.interpolationForAttribute('tags') as any;
}
public set tags(value: { [key: string]: string } ) {
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 }
public get tagsAll(): { [key: string]: string } {
return this.interpolationForAttribute('tags_all') as any; // Getting the computed value is not yet implemented
}
public set tagsAll(value: { [key: string]: string }) {
this._tagsAll = value;
}
public resetTagsAll() {
this._tagsAll = undefined;
}
// Temporarily expose input value. Use with caution.
public get tagsAllInput() {
return this._tagsAll
}

// action - computed: false, optional: false, required: true
private _action: AlbListenerRuleAction[];
public get action() {
Expand Down Expand Up @@ -377,6 +413,8 @@ export class AlbListenerRule extends cdktf.TerraformResource {
return {
listener_arn: cdktf.stringToTerraform(this._listenerArn),
priority: cdktf.numberToTerraform(this._priority),
tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags),
tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll),
action: cdktf.listMapper(albListenerRuleActionToTerraform)(this._action),
condition: cdktf.listMapper(albListenerRuleConditionToTerraform)(this._condition),
};
Expand Down
38 changes: 38 additions & 0 deletions src/alb-listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export interface AlbListenerConfig extends cdktf.TerraformMetaArguments {
readonly port?: number;
readonly protocol?: string;
readonly sslPolicy?: string;
readonly tags?: { [key: string]: string };
readonly tagsAll?: { [key: string]: string };
/** default_action block */
readonly defaultAction: AlbListenerDefaultAction[];
/** timeouts block */
Expand Down Expand Up @@ -218,6 +220,8 @@ export class AlbListener extends cdktf.TerraformResource {
this._port = config.port;
this._protocol = config.protocol;
this._sslPolicy = config.sslPolicy;
this._tags = config.tags;
this._tagsAll = config.tagsAll;
this._defaultAction = config.defaultAction;
this._timeouts = config.timeouts;
}
Expand Down Expand Up @@ -329,6 +333,38 @@ export class AlbListener extends cdktf.TerraformResource {
return this._sslPolicy
}

// tags - computed: false, optional: true, required: false
private _tags?: { [key: string]: string };
public get tags() {
return this.interpolationForAttribute('tags') as any;
}
public set tags(value: { [key: string]: string } ) {
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 }
public get tagsAll(): { [key: string]: string } {
return this.interpolationForAttribute('tags_all') as any; // Getting the computed value is not yet implemented
}
public set tagsAll(value: { [key: string]: string }) {
this._tagsAll = value;
}
public resetTagsAll() {
this._tagsAll = undefined;
}
// Temporarily expose input value. Use with caution.
public get tagsAllInput() {
return this._tagsAll
}

// default_action - computed: false, optional: false, required: true
private _defaultAction: AlbListenerDefaultAction[];
public get defaultAction() {
Expand Down Expand Up @@ -370,6 +406,8 @@ export class AlbListener extends cdktf.TerraformResource {
port: cdktf.numberToTerraform(this._port),
protocol: cdktf.stringToTerraform(this._protocol),
ssl_policy: cdktf.stringToTerraform(this._sslPolicy),
tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags),
tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll),
default_action: cdktf.listMapper(albListenerDefaultActionToTerraform)(this._defaultAction),
timeouts: albListenerTimeoutsToTerraform(this._timeouts),
};
Expand Down
19 changes: 19 additions & 0 deletions src/ami-copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import * as cdktf from 'cdktf';

export interface AmiCopyConfig extends cdktf.TerraformMetaArguments {
readonly description?: string;
readonly destinationOutpostArn?: string;
readonly encrypted?: boolean;
readonly kmsKeyId?: string;
readonly name: string;
Expand Down Expand Up @@ -76,6 +77,7 @@ export class AmiCopy extends cdktf.TerraformResource {
lifecycle: config.lifecycle
});
this._description = config.description;
this._destinationOutpostArn = config.destinationOutpostArn;
this._encrypted = config.encrypted;
this._kmsKeyId = config.kmsKeyId;
this._name = config.name;
Expand Down Expand Up @@ -118,6 +120,22 @@ export class AmiCopy extends cdktf.TerraformResource {
return this._description
}

// destination_outpost_arn - computed: false, optional: true, required: false
private _destinationOutpostArn?: string;
public get destinationOutpostArn() {
return this.getStringAttribute('destination_outpost_arn');
}
public set destinationOutpostArn(value: string ) {
this._destinationOutpostArn = value;
}
public resetDestinationOutpostArn() {
this._destinationOutpostArn = undefined;
}
// Temporarily expose input value. Use with caution.
public get destinationOutpostArnInput() {
return this._destinationOutpostArn
}

// ena_support - computed: true, optional: false, required: false
public get enaSupport() {
return this.getBooleanAttribute('ena_support');
Expand Down Expand Up @@ -366,6 +384,7 @@ export class AmiCopy extends cdktf.TerraformResource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
description: cdktf.stringToTerraform(this._description),
destination_outpost_arn: cdktf.stringToTerraform(this._destinationOutpostArn),
encrypted: cdktf.booleanToTerraform(this._encrypted),
kms_key_id: cdktf.stringToTerraform(this._kmsKeyId),
name: cdktf.stringToTerraform(this._name),
Expand Down
181 changes: 181 additions & 0 deletions src/apprunner-auto-scaling-configuration-version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
// https://www.terraform.io/docs/providers/aws/r/apprunner_auto_scaling_configuration_version.html
// generated from terraform resource schema

import { Construct } from 'constructs';
import * as cdktf from 'cdktf';

// Configuration

export interface ApprunnerAutoScalingConfigurationVersionConfig extends cdktf.TerraformMetaArguments {
readonly autoScalingConfigurationName: string;
readonly maxConcurrency?: number;
readonly maxSize?: number;
readonly minSize?: number;
readonly tags?: { [key: string]: string };
readonly tagsAll?: { [key: string]: string };
}

// Resource

export class ApprunnerAutoScalingConfigurationVersion extends cdktf.TerraformResource {

// ===========
// INITIALIZER
// ===========

public constructor(scope: Construct, id: string, config: ApprunnerAutoScalingConfigurationVersionConfig) {
super(scope, id, {
terraformResourceType: 'aws_apprunner_auto_scaling_configuration_version',
terraformGeneratorMetadata: {
providerName: 'aws'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle
});
this._autoScalingConfigurationName = config.autoScalingConfigurationName;
this._maxConcurrency = config.maxConcurrency;
this._maxSize = config.maxSize;
this._minSize = config.minSize;
this._tags = config.tags;
this._tagsAll = config.tagsAll;
}

// ==========
// ATTRIBUTES
// ==========

// arn - computed: true, optional: false, required: false
public get arn() {
return this.getStringAttribute('arn');
}

// auto_scaling_configuration_name - computed: false, optional: false, required: true
private _autoScalingConfigurationName: string;
public get autoScalingConfigurationName() {
return this.getStringAttribute('auto_scaling_configuration_name');
}
public set autoScalingConfigurationName(value: string) {
this._autoScalingConfigurationName = value;
}
// Temporarily expose input value. Use with caution.
public get autoScalingConfigurationNameInput() {
return this._autoScalingConfigurationName
}

// auto_scaling_configuration_revision - computed: true, optional: false, required: false
public get autoScalingConfigurationRevision() {
return this.getNumberAttribute('auto_scaling_configuration_revision');
}

// id - computed: true, optional: true, required: false
public get id() {
return this.getStringAttribute('id');
}

// latest - computed: true, optional: false, required: false
public get latest() {
return this.getBooleanAttribute('latest');
}

// max_concurrency - computed: false, optional: true, required: false
private _maxConcurrency?: number;
public get maxConcurrency() {
return this.getNumberAttribute('max_concurrency');
}
public set maxConcurrency(value: number ) {
this._maxConcurrency = value;
}
public resetMaxConcurrency() {
this._maxConcurrency = undefined;
}
// Temporarily expose input value. Use with caution.
public get maxConcurrencyInput() {
return this._maxConcurrency
}

// max_size - computed: false, optional: true, required: false
private _maxSize?: number;
public get maxSize() {
return this.getNumberAttribute('max_size');
}
public set maxSize(value: number ) {
this._maxSize = value;
}
public resetMaxSize() {
this._maxSize = undefined;
}
// Temporarily expose input value. Use with caution.
public get maxSizeInput() {
return this._maxSize
}

// min_size - computed: false, optional: true, required: false
private _minSize?: number;
public get minSize() {
return this.getNumberAttribute('min_size');
}
public set minSize(value: number ) {
this._minSize = value;
}
public resetMinSize() {
this._minSize = undefined;
}
// Temporarily expose input value. Use with caution.
public get minSizeInput() {
return this._minSize
}

// status - computed: true, optional: false, required: false
public get status() {
return this.getStringAttribute('status');
}

// tags - computed: false, optional: true, required: false
private _tags?: { [key: string]: string };
public get tags() {
return this.interpolationForAttribute('tags') as any;
}
public set tags(value: { [key: string]: string } ) {
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 }
public get tagsAll(): { [key: string]: string } {
return this.interpolationForAttribute('tags_all') as any; // Getting the computed value is not yet implemented
}
public set tagsAll(value: { [key: string]: string }) {
this._tagsAll = value;
}
public resetTagsAll() {
this._tagsAll = undefined;
}
// Temporarily expose input value. Use with caution.
public get tagsAllInput() {
return this._tagsAll
}

// =========
// SYNTHESIS
// =========

protected synthesizeAttributes(): { [name: string]: any } {
return {
auto_scaling_configuration_name: cdktf.stringToTerraform(this._autoScalingConfigurationName),
max_concurrency: cdktf.numberToTerraform(this._maxConcurrency),
max_size: cdktf.numberToTerraform(this._maxSize),
min_size: cdktf.numberToTerraform(this._minSize),
tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags),
tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll),
};
}
}
Loading

0 comments on commit 6cb955e

Please sign in to comment.