-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #387 from terraform-cdk-providers/auto/provider-up…
…grade chore: upgrade provider
- Loading branch information
Showing
13 changed files
with
1,397 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
// https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_bus_policy.html | ||
// generated from terraform resource schema | ||
|
||
import { Construct } from 'constructs'; | ||
import * as cdktf from 'cdktf'; | ||
|
||
// Configuration | ||
|
||
export interface CloudwatchEventBusPolicyConfig extends cdktf.TerraformMetaArguments { | ||
/** | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_bus_policy.html#event_bus_name CloudwatchEventBusPolicy#event_bus_name} | ||
*/ | ||
readonly eventBusName?: string; | ||
/** | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_bus_policy.html#policy CloudwatchEventBusPolicy#policy} | ||
*/ | ||
readonly policy: string; | ||
} | ||
|
||
/** | ||
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_bus_policy.html aws_cloudwatch_event_bus_policy} | ||
*/ | ||
export class CloudwatchEventBusPolicy extends cdktf.TerraformResource { | ||
|
||
// =========== | ||
// INITIALIZER | ||
// =========== | ||
|
||
/** | ||
* Create a new {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_bus_policy.html aws_cloudwatch_event_bus_policy} 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 CloudwatchEventBusPolicyConfig | ||
*/ | ||
public constructor(scope: Construct, id: string, config: CloudwatchEventBusPolicyConfig) { | ||
super(scope, id, { | ||
terraformResourceType: 'aws_cloudwatch_event_bus_policy', | ||
terraformGeneratorMetadata: { | ||
providerName: 'aws' | ||
}, | ||
provider: config.provider, | ||
dependsOn: config.dependsOn, | ||
count: config.count, | ||
lifecycle: config.lifecycle | ||
}); | ||
this._eventBusName = config.eventBusName; | ||
this._policy = config.policy; | ||
} | ||
|
||
// ========== | ||
// ATTRIBUTES | ||
// ========== | ||
|
||
// event_bus_name - computed: false, optional: true, required: false | ||
private _eventBusName?: string; | ||
public get eventBusName() { | ||
return this.getStringAttribute('event_bus_name'); | ||
} | ||
public set eventBusName(value: string ) { | ||
this._eventBusName = value; | ||
} | ||
public resetEventBusName() { | ||
this._eventBusName = undefined; | ||
} | ||
// Temporarily expose input value. Use with caution. | ||
public get eventBusNameInput() { | ||
return this._eventBusName | ||
} | ||
|
||
// id - computed: true, optional: true, required: false | ||
public get id() { | ||
return this.getStringAttribute('id'); | ||
} | ||
|
||
// policy - computed: false, optional: false, required: true | ||
private _policy: string; | ||
public get policy() { | ||
return this.getStringAttribute('policy'); | ||
} | ||
public set policy(value: string) { | ||
this._policy = value; | ||
} | ||
// Temporarily expose input value. Use with caution. | ||
public get policyInput() { | ||
return this._policy | ||
} | ||
|
||
// ========= | ||
// SYNTHESIS | ||
// ========= | ||
|
||
protected synthesizeAttributes(): { [name: string]: any } { | ||
return { | ||
event_bus_name: cdktf.stringToTerraform(this._eventBusName), | ||
policy: cdktf.stringToTerraform(this._policy), | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
// https://www.terraform.io/docs/providers/aws/d/servicecatalog_product.html | ||
// generated from terraform resource schema | ||
|
||
import { Construct } from 'constructs'; | ||
import * as cdktf from 'cdktf'; | ||
|
||
// Configuration | ||
|
||
export interface DataAwsServicecatalogProductConfig extends cdktf.TerraformMetaArguments { | ||
/** | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/servicecatalog_product.html#accept_language DataAwsServicecatalogProduct#accept_language} | ||
*/ | ||
readonly acceptLanguage?: string; | ||
/** | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/servicecatalog_product.html#id DataAwsServicecatalogProduct#id} | ||
*/ | ||
readonly id: string; | ||
/** | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/servicecatalog_product.html#tags DataAwsServicecatalogProduct#tags} | ||
*/ | ||
readonly tags?: { [key: string]: string }; | ||
} | ||
|
||
/** | ||
* Represents a {@link https://www.terraform.io/docs/providers/aws/d/servicecatalog_product.html aws_servicecatalog_product} | ||
*/ | ||
export class DataAwsServicecatalogProduct extends cdktf.TerraformDataSource { | ||
|
||
// =========== | ||
// INITIALIZER | ||
// =========== | ||
|
||
/** | ||
* Create a new {@link https://www.terraform.io/docs/providers/aws/d/servicecatalog_product.html aws_servicecatalog_product} Data Source | ||
* | ||
* @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 DataAwsServicecatalogProductConfig | ||
*/ | ||
public constructor(scope: Construct, id: string, config: DataAwsServicecatalogProductConfig) { | ||
super(scope, id, { | ||
terraformResourceType: 'aws_servicecatalog_product', | ||
terraformGeneratorMetadata: { | ||
providerName: 'aws' | ||
}, | ||
provider: config.provider, | ||
dependsOn: config.dependsOn, | ||
count: config.count, | ||
lifecycle: config.lifecycle | ||
}); | ||
this._acceptLanguage = config.acceptLanguage; | ||
this._id = config.id; | ||
this._tags = config.tags; | ||
} | ||
|
||
// ========== | ||
// ATTRIBUTES | ||
// ========== | ||
|
||
// accept_language - computed: false, optional: true, required: false | ||
private _acceptLanguage?: string; | ||
public get acceptLanguage() { | ||
return this.getStringAttribute('accept_language'); | ||
} | ||
public set acceptLanguage(value: string ) { | ||
this._acceptLanguage = value; | ||
} | ||
public resetAcceptLanguage() { | ||
this._acceptLanguage = undefined; | ||
} | ||
// Temporarily expose input value. Use with caution. | ||
public get acceptLanguageInput() { | ||
return this._acceptLanguage | ||
} | ||
|
||
// arn - computed: true, optional: false, required: false | ||
public get arn() { | ||
return this.getStringAttribute('arn'); | ||
} | ||
|
||
// created_time - computed: true, optional: false, required: false | ||
public get createdTime() { | ||
return this.getStringAttribute('created_time'); | ||
} | ||
|
||
// description - computed: true, optional: false, required: false | ||
public get description() { | ||
return this.getStringAttribute('description'); | ||
} | ||
|
||
// distributor - computed: true, optional: false, required: false | ||
public get distributor() { | ||
return this.getStringAttribute('distributor'); | ||
} | ||
|
||
// has_default_path - computed: true, optional: false, required: false | ||
public get hasDefaultPath() { | ||
return this.getBooleanAttribute('has_default_path'); | ||
} | ||
|
||
// id - computed: false, optional: false, required: true | ||
private _id: string; | ||
public get id() { | ||
return this.getStringAttribute('id'); | ||
} | ||
public set id(value: string) { | ||
this._id = value; | ||
} | ||
// Temporarily expose input value. Use with caution. | ||
public get idInput() { | ||
return this._id | ||
} | ||
|
||
// name - computed: true, optional: false, required: false | ||
public get name() { | ||
return this.getStringAttribute('name'); | ||
} | ||
|
||
// owner - computed: true, optional: false, required: false | ||
public get owner() { | ||
return this.getStringAttribute('owner'); | ||
} | ||
|
||
// status - computed: true, optional: false, required: false | ||
public get status() { | ||
return this.getStringAttribute('status'); | ||
} | ||
|
||
// support_description - computed: true, optional: false, required: false | ||
public get supportDescription() { | ||
return this.getStringAttribute('support_description'); | ||
} | ||
|
||
// support_email - computed: true, optional: false, required: false | ||
public get supportEmail() { | ||
return this.getStringAttribute('support_email'); | ||
} | ||
|
||
// support_url - computed: true, optional: false, required: false | ||
public get supportUrl() { | ||
return this.getStringAttribute('support_url'); | ||
} | ||
|
||
// tags - computed: true, optional: true, required: false | ||
private _tags?: { [key: string]: string } | ||
public get tags(): { [key: string]: string } { | ||
return this.interpolationForAttribute('tags') as any; // Getting the computed value is not yet implemented | ||
} | ||
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 | ||
} | ||
|
||
// type - computed: true, optional: false, required: false | ||
public get type() { | ||
return this.getStringAttribute('type'); | ||
} | ||
|
||
// ========= | ||
// SYNTHESIS | ||
// ========= | ||
|
||
protected synthesizeAttributes(): { [name: string]: any } { | ||
return { | ||
accept_language: cdktf.stringToTerraform(this._acceptLanguage), | ||
id: cdktf.stringToTerraform(this._id), | ||
tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), | ||
}; | ||
} | ||
} |
Oops, something went wrong.