@pulumi/aiven 5.6.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +2 -2
  2. package/accountTeamMember.d.ts +6 -6
  3. package/accountTeamProject.d.ts +3 -3
  4. package/azurePrivatelink.d.ts +3 -3
  5. package/cassandra.d.ts +2 -2
  6. package/cassandra.js +2 -2
  7. package/connectionPool.d.ts +3 -3
  8. package/flinkApplicationVersion.d.ts +40 -4
  9. package/flinkApplicationVersion.js +4 -6
  10. package/flinkApplicationVersion.js.map +1 -1
  11. package/getAccountTeamMember.d.ts +6 -6
  12. package/getAccountTeamProject.d.ts +1 -1
  13. package/getAzurePrivatelink.d.ts +1 -1
  14. package/getConnectionPool.d.ts +1 -1
  15. package/getFlinkApplicationVersion.d.ts +8 -0
  16. package/getFlinkApplicationVersion.js.map +1 -1
  17. package/getMirrorMakerReplicationFlow.d.ts +6 -6
  18. package/getOpenSearchAclRule.d.ts +9 -9
  19. package/getServiceIntegration.d.ts +3 -7
  20. package/getServiceIntegration.js.map +1 -1
  21. package/getTransitGatewayVpcAttachment.d.ts +6 -6
  22. package/grafana.d.ts +2 -2
  23. package/grafana.js +2 -2
  24. package/index.d.ts +0 -24
  25. package/index.js +4 -38
  26. package/index.js.map +1 -1
  27. package/influxDb.d.ts +1 -1
  28. package/influxDb.js +1 -1
  29. package/kafka.d.ts +7 -7
  30. package/kafka.js +7 -7
  31. package/kafkaConnect.d.ts +1 -1
  32. package/kafkaConnect.js +1 -1
  33. package/kafkaMirrorMaker.d.ts +3 -3
  34. package/kafkaMirrorMaker.js +3 -3
  35. package/kafkaUser.d.ts +14 -0
  36. package/kafkaUser.js +14 -0
  37. package/kafkaUser.js.map +1 -1
  38. package/mirrorMakerReplicationFlow.d.ts +6 -6
  39. package/mySql.d.ts +2 -2
  40. package/mySql.js +2 -2
  41. package/openSearch.d.ts +4 -4
  42. package/openSearch.js +4 -4
  43. package/openSearchAclConfig.d.ts +1 -1
  44. package/openSearchAclConfig.js +1 -1
  45. package/openSearchAclRule.d.ts +11 -11
  46. package/openSearchAclRule.js +2 -2
  47. package/package.json +2 -2
  48. package/package.json.dev +2 -2
  49. package/redis.d.ts +1 -1
  50. package/redis.js +1 -1
  51. package/serviceIntegration.d.ts +3 -15
  52. package/serviceIntegration.js +0 -2
  53. package/serviceIntegration.js.map +1 -1
  54. package/staticIp.d.ts +2 -2
  55. package/transitGatewayVpcAttachment.d.ts +6 -6
  56. package/types/input.d.ts +646 -626
  57. package/types/output.d.ts +1153 -1061
  58. package/database.d.ts +0 -133
  59. package/database.js +0 -90
  60. package/database.js.map +0 -1
  61. package/flinkJob.d.ts +0 -136
  62. package/flinkJob.js +0 -100
  63. package/flinkJob.js.map +0 -1
  64. package/flinkJobTable.d.ts +0 -268
  65. package/flinkJobTable.js +0 -126
  66. package/flinkJobTable.js.map +0 -1
  67. package/getDatabase.d.ts +0 -103
  68. package/getDatabase.js +0 -57
  69. package/getDatabase.js.map +0 -1
  70. package/getServiceUser.d.ts +0 -130
  71. package/getServiceUser.js +0 -53
  72. package/getServiceUser.js.map +0 -1
  73. package/getVpcPeeringConnection.d.ts +0 -120
  74. package/getVpcPeeringConnection.js +0 -53
  75. package/getVpcPeeringConnection.js.map +0 -1
  76. package/serviceUser.d.ts +0 -204
  77. package/serviceUser.js +0 -108
  78. package/serviceUser.js.map +0 -1
  79. package/vpcPeeringConnection.d.ts +0 -155
  80. package/vpcPeeringConnection.js +0 -83
  81. package/vpcPeeringConnection.js.map +0 -1
package/database.d.ts DELETED
@@ -1,133 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * The Database resource allows the creation and management of Aiven Databases.
4
- *
5
- * ## Example Usage
6
- *
7
- * ```typescript
8
- * import * as pulumi from "@pulumi/pulumi";
9
- * import * as aiven from "@pulumi/aiven";
10
- *
11
- * const mydatabase = new aiven.Database("mydatabase", {
12
- * project: aiven_project.myproject.project,
13
- * serviceName: aiven_pg.mypg.service_name,
14
- * databaseName: "<DATABASE_NAME>",
15
- * });
16
- * ```
17
- *
18
- * ## Import
19
- *
20
- * ```sh
21
- * $ pulumi import aiven:index/database:Database mydatabase project/service_name/database_name
22
- * ```
23
- */
24
- export declare class Database extends pulumi.CustomResource {
25
- /**
26
- * Get an existing Database resource's state with the given name, ID, and optional extra
27
- * properties used to qualify the lookup.
28
- *
29
- * @param name The _unique_ name of the resulting resource.
30
- * @param id The _unique_ provider ID of the resource to lookup.
31
- * @param state Any extra arguments used during the lookup.
32
- * @param opts Optional settings to control the behavior of the CustomResource.
33
- */
34
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatabaseState, opts?: pulumi.CustomResourceOptions): Database;
35
- /**
36
- * Returns true if the given object is an instance of Database. This is designed to work even
37
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
38
- */
39
- static isInstance(obj: any): obj is Database;
40
- /**
41
- * The name of the service database. This property cannot be changed, doing so forces recreation of the resource.
42
- */
43
- readonly databaseName: pulumi.Output<string>;
44
- /**
45
- * Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. This property cannot be changed, doing so forces recreation of the resource.
46
- */
47
- readonly lcCollate: pulumi.Output<string | undefined>;
48
- /**
49
- * Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. This property cannot be changed, doing so forces recreation of the resource.
50
- */
51
- readonly lcCtype: pulumi.Output<string | undefined>;
52
- /**
53
- * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
54
- */
55
- readonly project: pulumi.Output<string>;
56
- /**
57
- * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
58
- */
59
- readonly serviceName: pulumi.Output<string>;
60
- /**
61
- * It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
62
- * recommended to enable this for any production databases containing critical data. The default value is `false`.
63
- */
64
- readonly terminationProtection: pulumi.Output<boolean | undefined>;
65
- /**
66
- * Create a Database resource with the given unique name, arguments, and options.
67
- *
68
- * @param name The _unique_ name of the resource.
69
- * @param args The arguments to use to populate this resource's properties.
70
- * @param opts A bag of options that control this resource's behavior.
71
- */
72
- constructor(name: string, args: DatabaseArgs, opts?: pulumi.CustomResourceOptions);
73
- }
74
- /**
75
- * Input properties used for looking up and filtering Database resources.
76
- */
77
- export interface DatabaseState {
78
- /**
79
- * The name of the service database. This property cannot be changed, doing so forces recreation of the resource.
80
- */
81
- databaseName?: pulumi.Input<string>;
82
- /**
83
- * Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. This property cannot be changed, doing so forces recreation of the resource.
84
- */
85
- lcCollate?: pulumi.Input<string>;
86
- /**
87
- * Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. This property cannot be changed, doing so forces recreation of the resource.
88
- */
89
- lcCtype?: pulumi.Input<string>;
90
- /**
91
- * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
92
- */
93
- project?: pulumi.Input<string>;
94
- /**
95
- * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
96
- */
97
- serviceName?: pulumi.Input<string>;
98
- /**
99
- * It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
100
- * recommended to enable this for any production databases containing critical data. The default value is `false`.
101
- */
102
- terminationProtection?: pulumi.Input<boolean>;
103
- }
104
- /**
105
- * The set of arguments for constructing a Database resource.
106
- */
107
- export interface DatabaseArgs {
108
- /**
109
- * The name of the service database. This property cannot be changed, doing so forces recreation of the resource.
110
- */
111
- databaseName: pulumi.Input<string>;
112
- /**
113
- * Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. This property cannot be changed, doing so forces recreation of the resource.
114
- */
115
- lcCollate?: pulumi.Input<string>;
116
- /**
117
- * Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. This property cannot be changed, doing so forces recreation of the resource.
118
- */
119
- lcCtype?: pulumi.Input<string>;
120
- /**
121
- * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
122
- */
123
- project: pulumi.Input<string>;
124
- /**
125
- * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
126
- */
127
- serviceName: pulumi.Input<string>;
128
- /**
129
- * It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
130
- * recommended to enable this for any production databases containing critical data. The default value is `false`.
131
- */
132
- terminationProtection?: pulumi.Input<boolean>;
133
- }
package/database.js DELETED
@@ -1,90 +0,0 @@
1
- "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Database = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * The Database resource allows the creation and management of Aiven Databases.
10
- *
11
- * ## Example Usage
12
- *
13
- * ```typescript
14
- * import * as pulumi from "@pulumi/pulumi";
15
- * import * as aiven from "@pulumi/aiven";
16
- *
17
- * const mydatabase = new aiven.Database("mydatabase", {
18
- * project: aiven_project.myproject.project,
19
- * serviceName: aiven_pg.mypg.service_name,
20
- * databaseName: "<DATABASE_NAME>",
21
- * });
22
- * ```
23
- *
24
- * ## Import
25
- *
26
- * ```sh
27
- * $ pulumi import aiven:index/database:Database mydatabase project/service_name/database_name
28
- * ```
29
- */
30
- class Database extends pulumi.CustomResource {
31
- /**
32
- * Get an existing Database resource's state with the given name, ID, and optional extra
33
- * properties used to qualify the lookup.
34
- *
35
- * @param name The _unique_ name of the resulting resource.
36
- * @param id The _unique_ provider ID of the resource to lookup.
37
- * @param state Any extra arguments used during the lookup.
38
- * @param opts Optional settings to control the behavior of the CustomResource.
39
- */
40
- static get(name, id, state, opts) {
41
- return new Database(name, state, Object.assign(Object.assign({}, opts), { id: id }));
42
- }
43
- /**
44
- * Returns true if the given object is an instance of Database. This is designed to work even
45
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
46
- */
47
- static isInstance(obj) {
48
- if (obj === undefined || obj === null) {
49
- return false;
50
- }
51
- return obj['__pulumiType'] === Database.__pulumiType;
52
- }
53
- constructor(name, argsOrState, opts) {
54
- let resourceInputs = {};
55
- opts = opts || {};
56
- if (opts.id) {
57
- const state = argsOrState;
58
- resourceInputs["databaseName"] = state ? state.databaseName : undefined;
59
- resourceInputs["lcCollate"] = state ? state.lcCollate : undefined;
60
- resourceInputs["lcCtype"] = state ? state.lcCtype : undefined;
61
- resourceInputs["project"] = state ? state.project : undefined;
62
- resourceInputs["serviceName"] = state ? state.serviceName : undefined;
63
- resourceInputs["terminationProtection"] = state ? state.terminationProtection : undefined;
64
- }
65
- else {
66
- const args = argsOrState;
67
- if ((!args || args.databaseName === undefined) && !opts.urn) {
68
- throw new Error("Missing required property 'databaseName'");
69
- }
70
- if ((!args || args.project === undefined) && !opts.urn) {
71
- throw new Error("Missing required property 'project'");
72
- }
73
- if ((!args || args.serviceName === undefined) && !opts.urn) {
74
- throw new Error("Missing required property 'serviceName'");
75
- }
76
- resourceInputs["databaseName"] = args ? args.databaseName : undefined;
77
- resourceInputs["lcCollate"] = args ? args.lcCollate : undefined;
78
- resourceInputs["lcCtype"] = args ? args.lcCtype : undefined;
79
- resourceInputs["project"] = args ? args.project : undefined;
80
- resourceInputs["serviceName"] = args ? args.serviceName : undefined;
81
- resourceInputs["terminationProtection"] = args ? args.terminationProtection : undefined;
82
- }
83
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
84
- super(Database.__pulumiType, name, resourceInputs, opts);
85
- }
86
- }
87
- exports.Database = Database;
88
- /** @internal */
89
- Database.__pulumiType = 'aiven:index/database:Database';
90
- //# sourceMappingURL=database.js.map
package/database.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"database.js","sourceRoot":"","sources":["../database.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAoCD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,G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,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA7FL,4BA8FC;AAhFG,gBAAgB;AACO,qBAAY,GAAG,+BAA+B,CAAC"}
package/flinkJob.d.ts DELETED
@@ -1,136 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * The Flink Job resource allows the creation and management of Aiven Jobs.
4
- *
5
- * ## Example Usage
6
- *
7
- * ```typescript
8
- * import * as pulumi from "@pulumi/pulumi";
9
- * import * as aiven from "@pulumi/aiven";
10
- *
11
- * const job = new aiven.FlinkJob("job", {
12
- * project: aiven_flink.flink.project,
13
- * serviceName: aiven_flink.flink.service_name,
14
- * jobName: "<JOB_NAME>",
15
- * tableIds: [
16
- * aiven_flink_table.source.table_id,
17
- * aiven_flink_table.sink.table_id,
18
- * ],
19
- * statement: ` INSERT INTO ${aiven_flink_table.sink.table_name}
20
- * SELECT * FROM ${aiven_flink_table.source.table_name}
21
- * WHERE `cpu` > 50
22
- * `,
23
- * });
24
- * ```
25
- */
26
- export declare class FlinkJob extends pulumi.CustomResource {
27
- /**
28
- * Get an existing FlinkJob resource's state with the given name, ID, and optional extra
29
- * properties used to qualify the lookup.
30
- *
31
- * @param name The _unique_ name of the resulting resource.
32
- * @param id The _unique_ provider ID of the resource to lookup.
33
- * @param state Any extra arguments used during the lookup.
34
- * @param opts Optional settings to control the behavior of the CustomResource.
35
- */
36
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FlinkJobState, opts?: pulumi.CustomResourceOptions): FlinkJob;
37
- /**
38
- * Returns true if the given object is an instance of FlinkJob. This is designed to work even
39
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
- */
41
- static isInstance(obj: any): obj is FlinkJob;
42
- /**
43
- * The Job ID of the flink job in the flink service.
44
- */
45
- readonly jobId: pulumi.Output<string>;
46
- /**
47
- * Specifies the name of the service that this job is submitted to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
48
- */
49
- readonly jobName: pulumi.Output<string>;
50
- /**
51
- * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
52
- */
53
- readonly project: pulumi.Output<string>;
54
- /**
55
- * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
56
- */
57
- readonly serviceName: pulumi.Output<string>;
58
- /**
59
- * The current state of the flink job in the flink service
60
- */
61
- readonly state: pulumi.Output<string>;
62
- /**
63
- * The SQL statement to define the job. This property cannot be changed, doing so forces recreation of the resource.
64
- */
65
- readonly statement: pulumi.Output<string>;
66
- /**
67
- * A list of table ids that are required in the job runtime. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
68
- */
69
- readonly tableIds: pulumi.Output<string[]>;
70
- /**
71
- * Create a FlinkJob resource with the given unique name, arguments, and options.
72
- *
73
- * @param name The _unique_ name of the resource.
74
- * @param args The arguments to use to populate this resource's properties.
75
- * @param opts A bag of options that control this resource's behavior.
76
- */
77
- constructor(name: string, args: FlinkJobArgs, opts?: pulumi.CustomResourceOptions);
78
- }
79
- /**
80
- * Input properties used for looking up and filtering FlinkJob resources.
81
- */
82
- export interface FlinkJobState {
83
- /**
84
- * The Job ID of the flink job in the flink service.
85
- */
86
- jobId?: pulumi.Input<string>;
87
- /**
88
- * Specifies the name of the service that this job is submitted to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
89
- */
90
- jobName?: pulumi.Input<string>;
91
- /**
92
- * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
93
- */
94
- project?: pulumi.Input<string>;
95
- /**
96
- * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
97
- */
98
- serviceName?: pulumi.Input<string>;
99
- /**
100
- * The current state of the flink job in the flink service
101
- */
102
- state?: pulumi.Input<string>;
103
- /**
104
- * The SQL statement to define the job. This property cannot be changed, doing so forces recreation of the resource.
105
- */
106
- statement?: pulumi.Input<string>;
107
- /**
108
- * A list of table ids that are required in the job runtime. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
109
- */
110
- tableIds?: pulumi.Input<pulumi.Input<string>[]>;
111
- }
112
- /**
113
- * The set of arguments for constructing a FlinkJob resource.
114
- */
115
- export interface FlinkJobArgs {
116
- /**
117
- * Specifies the name of the service that this job is submitted to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
118
- */
119
- jobName: pulumi.Input<string>;
120
- /**
121
- * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
122
- */
123
- project: pulumi.Input<string>;
124
- /**
125
- * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
126
- */
127
- serviceName: pulumi.Input<string>;
128
- /**
129
- * The SQL statement to define the job. This property cannot be changed, doing so forces recreation of the resource.
130
- */
131
- statement: pulumi.Input<string>;
132
- /**
133
- * A list of table ids that are required in the job runtime. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
134
- */
135
- tableIds: pulumi.Input<pulumi.Input<string>[]>;
136
- }
package/flinkJob.js DELETED
@@ -1,100 +0,0 @@
1
- "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.FlinkJob = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * The Flink Job resource allows the creation and management of Aiven Jobs.
10
- *
11
- * ## Example Usage
12
- *
13
- * ```typescript
14
- * import * as pulumi from "@pulumi/pulumi";
15
- * import * as aiven from "@pulumi/aiven";
16
- *
17
- * const job = new aiven.FlinkJob("job", {
18
- * project: aiven_flink.flink.project,
19
- * serviceName: aiven_flink.flink.service_name,
20
- * jobName: "<JOB_NAME>",
21
- * tableIds: [
22
- * aiven_flink_table.source.table_id,
23
- * aiven_flink_table.sink.table_id,
24
- * ],
25
- * statement: ` INSERT INTO ${aiven_flink_table.sink.table_name}
26
- * SELECT * FROM ${aiven_flink_table.source.table_name}
27
- * WHERE `cpu` > 50
28
- * `,
29
- * });
30
- * ```
31
- */
32
- class FlinkJob extends pulumi.CustomResource {
33
- /**
34
- * Get an existing FlinkJob resource's state with the given name, ID, and optional extra
35
- * properties used to qualify the lookup.
36
- *
37
- * @param name The _unique_ name of the resulting resource.
38
- * @param id The _unique_ provider ID of the resource to lookup.
39
- * @param state Any extra arguments used during the lookup.
40
- * @param opts Optional settings to control the behavior of the CustomResource.
41
- */
42
- static get(name, id, state, opts) {
43
- return new FlinkJob(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
- }
45
- /**
46
- * Returns true if the given object is an instance of FlinkJob. This is designed to work even
47
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
48
- */
49
- static isInstance(obj) {
50
- if (obj === undefined || obj === null) {
51
- return false;
52
- }
53
- return obj['__pulumiType'] === FlinkJob.__pulumiType;
54
- }
55
- constructor(name, argsOrState, opts) {
56
- let resourceInputs = {};
57
- opts = opts || {};
58
- if (opts.id) {
59
- const state = argsOrState;
60
- resourceInputs["jobId"] = state ? state.jobId : undefined;
61
- resourceInputs["jobName"] = state ? state.jobName : undefined;
62
- resourceInputs["project"] = state ? state.project : undefined;
63
- resourceInputs["serviceName"] = state ? state.serviceName : undefined;
64
- resourceInputs["state"] = state ? state.state : undefined;
65
- resourceInputs["statement"] = state ? state.statement : undefined;
66
- resourceInputs["tableIds"] = state ? state.tableIds : undefined;
67
- }
68
- else {
69
- const args = argsOrState;
70
- if ((!args || args.jobName === undefined) && !opts.urn) {
71
- throw new Error("Missing required property 'jobName'");
72
- }
73
- if ((!args || args.project === undefined) && !opts.urn) {
74
- throw new Error("Missing required property 'project'");
75
- }
76
- if ((!args || args.serviceName === undefined) && !opts.urn) {
77
- throw new Error("Missing required property 'serviceName'");
78
- }
79
- if ((!args || args.statement === undefined) && !opts.urn) {
80
- throw new Error("Missing required property 'statement'");
81
- }
82
- if ((!args || args.tableIds === undefined) && !opts.urn) {
83
- throw new Error("Missing required property 'tableIds'");
84
- }
85
- resourceInputs["jobName"] = args ? args.jobName : undefined;
86
- resourceInputs["project"] = args ? args.project : undefined;
87
- resourceInputs["serviceName"] = args ? args.serviceName : undefined;
88
- resourceInputs["statement"] = args ? args.statement : undefined;
89
- resourceInputs["tableIds"] = args ? args.tableIds : undefined;
90
- resourceInputs["jobId"] = undefined /*out*/;
91
- resourceInputs["state"] = undefined /*out*/;
92
- }
93
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
94
- super(FlinkJob.__pulumiType, name, resourceInputs, opts);
95
- }
96
- }
97
- exports.FlinkJob = FlinkJob;
98
- /** @internal */
99
- FlinkJob.__pulumiType = 'aiven:index/flinkJob:FlinkJob';
100
- //# sourceMappingURL=flinkJob.js.map
package/flinkJob.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"flinkJob.js","sourceRoot":"","sources":["../flinkJob.ts"],"names":[],"mappings":";AAAA,wFA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