Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade cdktf 0.4 #69

Merged
merged 2 commits into from
May 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .projen/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"dependencies": [
{
"name": "@cdktf/provider-project",
"version": "^0.1.58",
"version": "^0.1.80",
"type": "build"
},
{
Expand All @@ -16,12 +16,12 @@
},
{
"name": "cdktf-cli",
"version": "^0.3",
"version": "^0.4",
"type": "build"
},
{
"name": "cdktf",
"version": "^0.3",
"version": "^0.4",
"type": "build"
},
{
Expand Down Expand Up @@ -79,7 +79,7 @@
},
{
"name": "cdktf",
"version": "^0.3",
"version": "^0.4",
"type": "peer"
},
{
Expand Down
24 changes: 12 additions & 12 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

Name|Description
----|-----------
[DataExternal](#cdktf-provider-external-dataexternal)|*No description*
[ExternalProvider](#cdktf-provider-external-externalprovider)|*No description*
[DataExternal](#cdktf-provider-external-dataexternal)|Represents a {@link https://www.terraform.io/docs/providers/external/d/external.html external}.
[ExternalProvider](#cdktf-provider-external-externalprovider)|Represents a {@link https://www.terraform.io/docs/providers/external external}.


**Structs**
Expand All @@ -19,30 +19,30 @@ Name|Description

## class DataExternal <a id="cdktf-provider-external-dataexternal"></a>


Represents a {@link https://www.terraform.io/docs/providers/external/d/external.html external}.

__Implements__: [IConstruct](#constructs-iconstruct), [ITerraformResource](#cdktf-iterraformresource), [ITerraformDependable](#cdktf-iterraformdependable)
__Extends__: [TerraformDataSource](#cdktf-terraformdatasource)

### Initializer



Create a new {@link https://www.terraform.io/docs/providers/external/d/external.html external} Data Source.

```ts
new DataExternal(scope: Construct, id: string, config: DataExternalConfig)
```

* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
* **id** (<code>string</code>) *No description*
* **scope** (<code>[Construct](#constructs-construct)</code>) The scope in which to define this construct.
* **id** (<code>string</code>) The scoped construct ID.
* **config** (<code>[DataExternalConfig](#cdktf-provider-external-dataexternalconfig)</code>) *No description*
* **count** (<code>number</code>) *No description* __*Optional*__
* **dependsOn** (<code>Array<[ITerraformDependable](#cdktf-iterraformdependable)></code>) *No description* __*Optional*__
* **lifecycle** (<code>[TerraformResourceLifecycle](#cdktf-terraformresourcelifecycle)</code>) *No description* __*Optional*__
* **provider** (<code>[TerraformProvider](#cdktf-terraformprovider)</code>) *No description* __*Optional*__
* **program** (<code>Array<string></code>) A list of strings, whose first element is the program to run and whose subsequent elements are optional command line arguments to the program.
* **query** (<code>Map<string, string></code>) A map of string values to pass to the external program as the query arguments. __*Optional*__
* **workingDir** (<code>string</code>) Working directory of the program. __*Optional*__
* **workingDir** (<code>string</code>) Working directory of the program. If not supplied, the program will run in the current directory. __*Optional*__



Expand Down Expand Up @@ -115,22 +115,22 @@ __Returns__:

## class ExternalProvider <a id="cdktf-provider-external-externalprovider"></a>


Represents a {@link https://www.terraform.io/docs/providers/external external}.

__Implements__: [IConstruct](#constructs-iconstruct)
__Extends__: [TerraformProvider](#cdktf-terraformprovider)

### Initializer



Create a new {@link https://www.terraform.io/docs/providers/external external} Resource.

```ts
new ExternalProvider(scope: Construct, id: string, config?: ExternalProviderConfig)
```

* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
* **id** (<code>string</code>) *No description*
* **scope** (<code>[Construct](#constructs-construct)</code>) The scope in which to define this construct.
* **id** (<code>string</code>) The scoped construct ID.
* **config** (<code>[ExternalProviderConfig](#cdktf-provider-external-externalproviderconfig)</code>) *No description*
* **alias** (<code>string</code>) Alias name. __*Optional*__

Expand Down Expand Up @@ -188,7 +188,7 @@ Name | Type | Description
**lifecycle**?🔹 | <code>[TerraformResourceLifecycle](#cdktf-terraformresourcelifecycle)</code> | __*Optional*__
**provider**?🔹 | <code>[TerraformProvider](#cdktf-terraformprovider)</code> | __*Optional*__
**query**? | <code>Map<string, string></code> | A map of string values to pass to the external program as the query arguments.<br/>__*Optional*__
**workingDir**? | <code>string</code> | Working directory of the program.<br/>__*Optional*__
**workingDir**? | <code>string</code> | Working directory of the program. If not supplied, the program will run in the current directory.<br/>__*Optional*__



Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
"organization": true
},
"devDependencies": {
"@cdktf/provider-project": "^0.1.58",
"@cdktf/provider-project": "^0.1.80",
"@types/jest": "^26.0.22",
"@types/node": "^10.17.0",
"cdktf": "^0.3",
"cdktf-cli": "^0.3",
"cdktf": "^0.4",
"cdktf-cli": "^0.4",
"constructs": "^3.0.4",
"dot-prop": "^5.2.0",
"jest": "^26.6.3",
Expand All @@ -52,7 +52,7 @@
"typescript": "^4.2.3"
},
"peerDependencies": {
"cdktf": "^0.3",
"cdktf": "^0.4",
"constructs": "^3.0.4"
},
"bundledDependencies": [],
Expand Down
32 changes: 26 additions & 6 deletions src/data-external.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// https://www.terraform.io/docs/providers/external/r/data_external.html
// https://www.terraform.io/docs/providers/external/d/external.html
// generated from terraform resource schema

import { Construct } from 'constructs';
Expand All @@ -7,22 +7,42 @@ import * as cdktf from 'cdktf';
// Configuration

export interface DataExternalConfig extends cdktf.TerraformMetaArguments {
/** A list of strings, whose first element is the program to run and whose subsequent elements are optional command line arguments to the program. Terraform does not execute the program through a shell, so it is not necessary to escape shell metacharacters nor add quotes around arguments containing spaces. */
/**
* A list of strings, whose first element is the program to run and whose subsequent elements are optional command line arguments to the program. Terraform does not execute the program through a shell, so it is not necessary to escape shell metacharacters nor add quotes around arguments containing spaces.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/external/d/external.html#program DataExternal#program}
*/
readonly program: string[];
/** A map of string values to pass to the external program as the query arguments. If not supplied, the program will receive an empty object as its input. */
/**
* A map of string values to pass to the external program as the query arguments. If not supplied, the program will receive an empty object as its input.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/external/d/external.html#query DataExternal#query}
*/
readonly query?: { [key: string]: string };
/** Working directory of the program. If not supplied, the program will run in the current directory. */
/**
* Working directory of the program. If not supplied, the program will run in the current directory.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/external/d/external.html#working_dir DataExternal#working_dir}
*/
readonly workingDir?: string;
}

// Resource

/**
* Represents a {@link https://www.terraform.io/docs/providers/external/d/external.html external}
*/
export class DataExternal extends cdktf.TerraformDataSource {

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

/**
* Create a new {@link https://www.terraform.io/docs/providers/external/d/external.html external} 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 DataExternalConfig
*/
public constructor(scope: Construct, id: string, config: DataExternalConfig) {
super(scope, id, {
terraformResourceType: 'external',
Expand Down
20 changes: 16 additions & 4 deletions src/external-provider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// https://www.terraform.io/docs/providers/external/r/external_provider.html
// https://www.terraform.io/docs/providers/external
// generated from terraform resource schema

import { Construct } from 'constructs';
Expand All @@ -7,18 +7,30 @@ import * as cdktf from 'cdktf';
// Configuration

export interface ExternalProviderConfig {
/** Alias name */
/**
* Alias name
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/external#alias ExternalProvider#alias}
*/
readonly alias?: string;
}

// Resource

/**
* Represents a {@link https://www.terraform.io/docs/providers/external external}
*/
export class ExternalProvider extends cdktf.TerraformProvider {

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

/**
* Create a new {@link https://www.terraform.io/docs/providers/external external} 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 ExternalProviderConfig = {}
*/
public constructor(scope: Construct, id: string, config: ExternalProviderConfig = {}) {
super(scope, id, {
terraformResourceType: 'external',
Expand Down
Loading