@pulumi/aws 5.9.0-alpha.1655117425 → 5.9.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.
@@ -0,0 +1,158 @@
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.Index = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides an Amazon Kendra Index resource.
10
+ *
11
+ * ## Example Usage
12
+ * ### Basic
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as aws from "@pulumi/aws";
17
+ *
18
+ * const example = new aws.kendra.Index("example", {
19
+ * description: "example",
20
+ * edition: "DEVELOPER_EDITION",
21
+ * roleArn: aws_iam_role["this"].arn,
22
+ * tags: {
23
+ * Key1: "Value1",
24
+ * },
25
+ * });
26
+ * ```
27
+ * ### With capacity units
28
+ *
29
+ * ```typescript
30
+ * import * as pulumi from "@pulumi/pulumi";
31
+ * import * as aws from "@pulumi/aws";
32
+ *
33
+ * const example = new aws.kendra.Index("example", {
34
+ * edition: "DEVELOPER_EDITION",
35
+ * roleArn: aws_iam_role["this"].arn,
36
+ * capacityUnits: {
37
+ * queryCapacityUnits: 2,
38
+ * storageCapacityUnits: 2,
39
+ * },
40
+ * });
41
+ * ```
42
+ * ### With server side encryption configuration
43
+ *
44
+ * ```typescript
45
+ * import * as pulumi from "@pulumi/pulumi";
46
+ * import * as aws from "@pulumi/aws";
47
+ *
48
+ * const example = new aws.kendra.Index("example", {
49
+ * roleArn: aws_iam_role["this"].arn,
50
+ * serverSideEncryptionConfiguration: {
51
+ * kmsKeyId: data.aws_kms_key["this"].arn,
52
+ * },
53
+ * });
54
+ * ```
55
+ * ### With JSON token type configuration
56
+ *
57
+ * ```typescript
58
+ * import * as pulumi from "@pulumi/pulumi";
59
+ * import * as aws from "@pulumi/aws";
60
+ *
61
+ * const example = new aws.kendra.Index("example", {
62
+ * roleArn: aws_iam_role["this"].arn,
63
+ * userTokenConfigurations: {
64
+ * jsonTokenTypeConfiguration: {
65
+ * groupAttributeField: "groups",
66
+ * userNameAttributeField: "username",
67
+ * },
68
+ * },
69
+ * });
70
+ * ```
71
+ *
72
+ * ## Import
73
+ *
74
+ * Amazon Kendra Indexes can be imported using its `id`, e.g.,
75
+ *
76
+ * ```sh
77
+ * $ pulumi import aws:kendra/index:Index example 12345678-1234-5678-9123-123456789123
78
+ * ```
79
+ */
80
+ class Index extends pulumi.CustomResource {
81
+ constructor(name, argsOrState, opts) {
82
+ let resourceInputs = {};
83
+ opts = opts || {};
84
+ if (opts.id) {
85
+ const state = argsOrState;
86
+ resourceInputs["arn"] = state ? state.arn : undefined;
87
+ resourceInputs["capacityUnits"] = state ? state.capacityUnits : undefined;
88
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
89
+ resourceInputs["description"] = state ? state.description : undefined;
90
+ resourceInputs["documentMetadataConfigurationUpdates"] = state ? state.documentMetadataConfigurationUpdates : undefined;
91
+ resourceInputs["edition"] = state ? state.edition : undefined;
92
+ resourceInputs["errorMessage"] = state ? state.errorMessage : undefined;
93
+ resourceInputs["indexStatistics"] = state ? state.indexStatistics : undefined;
94
+ resourceInputs["name"] = state ? state.name : undefined;
95
+ resourceInputs["roleArn"] = state ? state.roleArn : undefined;
96
+ resourceInputs["serverSideEncryptionConfiguration"] = state ? state.serverSideEncryptionConfiguration : undefined;
97
+ resourceInputs["status"] = state ? state.status : undefined;
98
+ resourceInputs["tags"] = state ? state.tags : undefined;
99
+ resourceInputs["tagsAll"] = state ? state.tagsAll : undefined;
100
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
101
+ resourceInputs["userContextPolicy"] = state ? state.userContextPolicy : undefined;
102
+ resourceInputs["userGroupResolutionConfiguration"] = state ? state.userGroupResolutionConfiguration : undefined;
103
+ resourceInputs["userTokenConfigurations"] = state ? state.userTokenConfigurations : undefined;
104
+ }
105
+ else {
106
+ const args = argsOrState;
107
+ if ((!args || args.roleArn === undefined) && !opts.urn) {
108
+ throw new Error("Missing required property 'roleArn'");
109
+ }
110
+ resourceInputs["capacityUnits"] = args ? args.capacityUnits : undefined;
111
+ resourceInputs["description"] = args ? args.description : undefined;
112
+ resourceInputs["edition"] = args ? args.edition : undefined;
113
+ resourceInputs["name"] = args ? args.name : undefined;
114
+ resourceInputs["roleArn"] = args ? args.roleArn : undefined;
115
+ resourceInputs["serverSideEncryptionConfiguration"] = args ? args.serverSideEncryptionConfiguration : undefined;
116
+ resourceInputs["tags"] = args ? args.tags : undefined;
117
+ resourceInputs["tagsAll"] = args ? args.tagsAll : undefined;
118
+ resourceInputs["userContextPolicy"] = args ? args.userContextPolicy : undefined;
119
+ resourceInputs["userGroupResolutionConfiguration"] = args ? args.userGroupResolutionConfiguration : undefined;
120
+ resourceInputs["userTokenConfigurations"] = args ? args.userTokenConfigurations : undefined;
121
+ resourceInputs["arn"] = undefined /*out*/;
122
+ resourceInputs["createdAt"] = undefined /*out*/;
123
+ resourceInputs["documentMetadataConfigurationUpdates"] = undefined /*out*/;
124
+ resourceInputs["errorMessage"] = undefined /*out*/;
125
+ resourceInputs["indexStatistics"] = undefined /*out*/;
126
+ resourceInputs["status"] = undefined /*out*/;
127
+ resourceInputs["updatedAt"] = undefined /*out*/;
128
+ }
129
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
130
+ super(Index.__pulumiType, name, resourceInputs, opts);
131
+ }
132
+ /**
133
+ * Get an existing Index resource's state with the given name, ID, and optional extra
134
+ * properties used to qualify the lookup.
135
+ *
136
+ * @param name The _unique_ name of the resulting resource.
137
+ * @param id The _unique_ provider ID of the resource to lookup.
138
+ * @param state Any extra arguments used during the lookup.
139
+ * @param opts Optional settings to control the behavior of the CustomResource.
140
+ */
141
+ static get(name, id, state, opts) {
142
+ return new Index(name, state, Object.assign(Object.assign({}, opts), { id: id }));
143
+ }
144
+ /**
145
+ * Returns true if the given object is an instance of Index. This is designed to work even
146
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
147
+ */
148
+ static isInstance(obj) {
149
+ if (obj === undefined || obj === null) {
150
+ return false;
151
+ }
152
+ return obj['__pulumiType'] === Index.__pulumiType;
153
+ }
154
+ }
155
+ exports.Index = Index;
156
+ /** @internal */
157
+ Index.__pulumiType = 'aws:kendra/index:Index';
158
+ //# sourceMappingURL=index_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index_.js","sourceRoot":"","sources":["../../kendra/index_.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IA8G5C,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqC,CAAC;YACpD,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,C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,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;;AA1BL,sBAgKC;AAlJG,gBAAgB;AACO,kBAAY,GAAG,wBAAwB,CAAC"}
@@ -49,7 +49,7 @@ import { input as inputs, output as outputs } from "../types";
49
49
  * import * as pulumi from "@pulumi/pulumi";
50
50
  * import * as aws from "@pulumi/aws";
51
51
  *
52
- * const lambda_example = new aws.lb.TargetGroup("lambda-example", {
52
+ * const alb_example = new aws.lb.TargetGroup("alb-example", {
53
53
  * targetType: "alb",
54
54
  * port: 80,
55
55
  * protocol: "TCP",
package/lb/targetGroup.js CHANGED
@@ -54,7 +54,7 @@ const utilities = require("../utilities");
54
54
  * import * as pulumi from "@pulumi/pulumi";
55
55
  * import * as aws from "@pulumi/aws";
56
56
  *
57
- * const lambda_example = new aws.lb.TargetGroup("lambda-example", {
57
+ * const alb_example = new aws.lb.TargetGroup("alb-example", {
58
58
  * targetType: "alb",
59
59
  * port: 80,
60
60
  * protocol: "TCP",
@@ -0,0 +1,258 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * An Amazon Lightsail container service is a highly scalable compute and networking resource on which you can deploy, run,
5
+ * and manage containers. For more information, see
6
+ * [Container services in Amazon Lightsail](https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-container-services).
7
+ *
8
+ * > **Note:** For more information about the AWS Regions in which you can create Amazon Lightsail container services,
9
+ * see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail).
10
+ *
11
+ * ## Example Usage
12
+ * ### Basic Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as aws from "@pulumi/aws";
17
+ *
18
+ * const myContainerService = new aws.lightsail.ContainerService("my_container_service", {
19
+ * isDisabled: false,
20
+ * power: "nano",
21
+ * scale: 1,
22
+ * tags: {
23
+ * foo1: "bar1",
24
+ * foo2: "",
25
+ * },
26
+ * });
27
+ * ```
28
+ * ### Public Domain Names
29
+ *
30
+ * ```typescript
31
+ * import * as pulumi from "@pulumi/pulumi";
32
+ * import * as aws from "@pulumi/aws";
33
+ *
34
+ * const myContainerService = new aws.lightsail.ContainerService("my_container_service", {
35
+ * publicDomainNames: {
36
+ * certificates: [{
37
+ * certificateName: "example-certificate",
38
+ * domainNames: ["www.example.com"],
39
+ * }],
40
+ * },
41
+ * });
42
+ * ```
43
+ *
44
+ * ## Import
45
+ *
46
+ * Lightsail Container Service can be imported using the `name`, e.g.,
47
+ *
48
+ * ```sh
49
+ * $ pulumi import aws:lightsail/containerService:ContainerService my_container_service container-service-1
50
+ * ```
51
+ */
52
+ export declare class ContainerService extends pulumi.CustomResource {
53
+ /**
54
+ * Get an existing ContainerService resource's state with the given name, ID, and optional extra
55
+ * properties used to qualify the lookup.
56
+ *
57
+ * @param name The _unique_ name of the resulting resource.
58
+ * @param id The _unique_ provider ID of the resource to lookup.
59
+ * @param state Any extra arguments used during the lookup.
60
+ * @param opts Optional settings to control the behavior of the CustomResource.
61
+ */
62
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ContainerServiceState, opts?: pulumi.CustomResourceOptions): ContainerService;
63
+ /**
64
+ * Returns true if the given object is an instance of ContainerService. This is designed to work even
65
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
66
+ */
67
+ static isInstance(obj: any): obj is ContainerService;
68
+ /**
69
+ * The Amazon Resource Name (ARN) of the container service.
70
+ */
71
+ readonly arn: pulumi.Output<string>;
72
+ /**
73
+ * The Availability Zone. Follows the format us-east-2a (case-sensitive).
74
+ */
75
+ readonly availabilityZone: pulumi.Output<string>;
76
+ readonly createdAt: pulumi.Output<string>;
77
+ /**
78
+ * A Boolean value indicating whether the container service is disabled. Defaults to `false`.
79
+ */
80
+ readonly isDisabled: pulumi.Output<boolean | undefined>;
81
+ /**
82
+ * The name for the container service. Names must be of length 1 to 63, and be
83
+ * unique within each AWS Region in your Lightsail account.
84
+ */
85
+ readonly name: pulumi.Output<string>;
86
+ /**
87
+ * The power specification for the container service. The power specifies the amount of memory,
88
+ * the number of vCPUs, and the monthly price of each node of the container service.
89
+ * Possible values: `nano`, `micro`, `small`, `medium`, `large`, `xlarge`.
90
+ */
91
+ readonly power: pulumi.Output<string>;
92
+ /**
93
+ * The ID of the power of the container service.
94
+ * * `principalArn`- The principal ARN of the container service. The principal ARN can be used to create a trust
95
+ * relationship between your standard AWS account and your Lightsail container service. This allows you to give your
96
+ * service permission to access resources in your standard AWS account.
97
+ */
98
+ readonly powerId: pulumi.Output<string>;
99
+ readonly principalArn: pulumi.Output<string>;
100
+ /**
101
+ * The private domain name of the container service. The private domain name is accessible only
102
+ * by other resources within the default virtual private cloud (VPC) of your Lightsail account.
103
+ */
104
+ readonly privateDomainName: pulumi.Output<string>;
105
+ /**
106
+ * The public domain names to use with the container service, such as example.com
107
+ * and www.example.com. You can specify up to four public domain names for a container service. The domain names that you
108
+ * specify are used when you create a deployment with a container configured as the public endpoint of your container
109
+ * service. If you don't specify public domain names, then you can use the default domain of the container service.
110
+ * Defined below.
111
+ */
112
+ readonly publicDomainNames: pulumi.Output<outputs.lightsail.ContainerServicePublicDomainNames | undefined>;
113
+ /**
114
+ * The Lightsail resource type of the container service (i.e., ContainerService).
115
+ */
116
+ readonly resourceType: pulumi.Output<string>;
117
+ /**
118
+ * The scale specification for the container service. The scale specifies the allocated compute
119
+ * nodes of the container service.
120
+ */
121
+ readonly scale: pulumi.Output<number>;
122
+ /**
123
+ * The current state of the container service.
124
+ */
125
+ readonly state: pulumi.Output<string>;
126
+ readonly tags: pulumi.Output<{
127
+ [key: string]: string;
128
+ } | undefined>;
129
+ readonly tagsAll: pulumi.Output<{
130
+ [key: string]: string;
131
+ }>;
132
+ /**
133
+ * The publicly accessible URL of the container service. If no public endpoint is specified in the
134
+ * currentDeployment, this URL returns a 404 response.
135
+ */
136
+ readonly url: pulumi.Output<string>;
137
+ /**
138
+ * Create a ContainerService resource with the given unique name, arguments, and options.
139
+ *
140
+ * @param name The _unique_ name of the resource.
141
+ * @param args The arguments to use to populate this resource's properties.
142
+ * @param opts A bag of options that control this resource's behavior.
143
+ */
144
+ constructor(name: string, args: ContainerServiceArgs, opts?: pulumi.CustomResourceOptions);
145
+ }
146
+ /**
147
+ * Input properties used for looking up and filtering ContainerService resources.
148
+ */
149
+ export interface ContainerServiceState {
150
+ /**
151
+ * The Amazon Resource Name (ARN) of the container service.
152
+ */
153
+ arn?: pulumi.Input<string>;
154
+ /**
155
+ * The Availability Zone. Follows the format us-east-2a (case-sensitive).
156
+ */
157
+ availabilityZone?: pulumi.Input<string>;
158
+ createdAt?: pulumi.Input<string>;
159
+ /**
160
+ * A Boolean value indicating whether the container service is disabled. Defaults to `false`.
161
+ */
162
+ isDisabled?: pulumi.Input<boolean>;
163
+ /**
164
+ * The name for the container service. Names must be of length 1 to 63, and be
165
+ * unique within each AWS Region in your Lightsail account.
166
+ */
167
+ name?: pulumi.Input<string>;
168
+ /**
169
+ * The power specification for the container service. The power specifies the amount of memory,
170
+ * the number of vCPUs, and the monthly price of each node of the container service.
171
+ * Possible values: `nano`, `micro`, `small`, `medium`, `large`, `xlarge`.
172
+ */
173
+ power?: pulumi.Input<string>;
174
+ /**
175
+ * The ID of the power of the container service.
176
+ * * `principalArn`- The principal ARN of the container service. The principal ARN can be used to create a trust
177
+ * relationship between your standard AWS account and your Lightsail container service. This allows you to give your
178
+ * service permission to access resources in your standard AWS account.
179
+ */
180
+ powerId?: pulumi.Input<string>;
181
+ principalArn?: pulumi.Input<string>;
182
+ /**
183
+ * The private domain name of the container service. The private domain name is accessible only
184
+ * by other resources within the default virtual private cloud (VPC) of your Lightsail account.
185
+ */
186
+ privateDomainName?: pulumi.Input<string>;
187
+ /**
188
+ * The public domain names to use with the container service, such as example.com
189
+ * and www.example.com. You can specify up to four public domain names for a container service. The domain names that you
190
+ * specify are used when you create a deployment with a container configured as the public endpoint of your container
191
+ * service. If you don't specify public domain names, then you can use the default domain of the container service.
192
+ * Defined below.
193
+ */
194
+ publicDomainNames?: pulumi.Input<inputs.lightsail.ContainerServicePublicDomainNames>;
195
+ /**
196
+ * The Lightsail resource type of the container service (i.e., ContainerService).
197
+ */
198
+ resourceType?: pulumi.Input<string>;
199
+ /**
200
+ * The scale specification for the container service. The scale specifies the allocated compute
201
+ * nodes of the container service.
202
+ */
203
+ scale?: pulumi.Input<number>;
204
+ /**
205
+ * The current state of the container service.
206
+ */
207
+ state?: pulumi.Input<string>;
208
+ tags?: pulumi.Input<{
209
+ [key: string]: pulumi.Input<string>;
210
+ }>;
211
+ tagsAll?: pulumi.Input<{
212
+ [key: string]: pulumi.Input<string>;
213
+ }>;
214
+ /**
215
+ * The publicly accessible URL of the container service. If no public endpoint is specified in the
216
+ * currentDeployment, this URL returns a 404 response.
217
+ */
218
+ url?: pulumi.Input<string>;
219
+ }
220
+ /**
221
+ * The set of arguments for constructing a ContainerService resource.
222
+ */
223
+ export interface ContainerServiceArgs {
224
+ /**
225
+ * A Boolean value indicating whether the container service is disabled. Defaults to `false`.
226
+ */
227
+ isDisabled?: pulumi.Input<boolean>;
228
+ /**
229
+ * The name for the container service. Names must be of length 1 to 63, and be
230
+ * unique within each AWS Region in your Lightsail account.
231
+ */
232
+ name?: pulumi.Input<string>;
233
+ /**
234
+ * The power specification for the container service. The power specifies the amount of memory,
235
+ * the number of vCPUs, and the monthly price of each node of the container service.
236
+ * Possible values: `nano`, `micro`, `small`, `medium`, `large`, `xlarge`.
237
+ */
238
+ power: pulumi.Input<string>;
239
+ /**
240
+ * The public domain names to use with the container service, such as example.com
241
+ * and www.example.com. You can specify up to four public domain names for a container service. The domain names that you
242
+ * specify are used when you create a deployment with a container configured as the public endpoint of your container
243
+ * service. If you don't specify public domain names, then you can use the default domain of the container service.
244
+ * Defined below.
245
+ */
246
+ publicDomainNames?: pulumi.Input<inputs.lightsail.ContainerServicePublicDomainNames>;
247
+ /**
248
+ * The scale specification for the container service. The scale specifies the allocated compute
249
+ * nodes of the container service.
250
+ */
251
+ scale: pulumi.Input<number>;
252
+ tags?: pulumi.Input<{
253
+ [key: string]: pulumi.Input<string>;
254
+ }>;
255
+ tagsAll?: pulumi.Input<{
256
+ [key: string]: pulumi.Input<string>;
257
+ }>;
258
+ }
@@ -0,0 +1,134 @@
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.ContainerService = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * An Amazon Lightsail container service is a highly scalable compute and networking resource on which you can deploy, run,
10
+ * and manage containers. For more information, see
11
+ * [Container services in Amazon Lightsail](https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-container-services).
12
+ *
13
+ * > **Note:** For more information about the AWS Regions in which you can create Amazon Lightsail container services,
14
+ * see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail).
15
+ *
16
+ * ## Example Usage
17
+ * ### Basic Usage
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as aws from "@pulumi/aws";
22
+ *
23
+ * const myContainerService = new aws.lightsail.ContainerService("my_container_service", {
24
+ * isDisabled: false,
25
+ * power: "nano",
26
+ * scale: 1,
27
+ * tags: {
28
+ * foo1: "bar1",
29
+ * foo2: "",
30
+ * },
31
+ * });
32
+ * ```
33
+ * ### Public Domain Names
34
+ *
35
+ * ```typescript
36
+ * import * as pulumi from "@pulumi/pulumi";
37
+ * import * as aws from "@pulumi/aws";
38
+ *
39
+ * const myContainerService = new aws.lightsail.ContainerService("my_container_service", {
40
+ * publicDomainNames: {
41
+ * certificates: [{
42
+ * certificateName: "example-certificate",
43
+ * domainNames: ["www.example.com"],
44
+ * }],
45
+ * },
46
+ * });
47
+ * ```
48
+ *
49
+ * ## Import
50
+ *
51
+ * Lightsail Container Service can be imported using the `name`, e.g.,
52
+ *
53
+ * ```sh
54
+ * $ pulumi import aws:lightsail/containerService:ContainerService my_container_service container-service-1
55
+ * ```
56
+ */
57
+ class ContainerService extends pulumi.CustomResource {
58
+ constructor(name, argsOrState, opts) {
59
+ let resourceInputs = {};
60
+ opts = opts || {};
61
+ if (opts.id) {
62
+ const state = argsOrState;
63
+ resourceInputs["arn"] = state ? state.arn : undefined;
64
+ resourceInputs["availabilityZone"] = state ? state.availabilityZone : undefined;
65
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
66
+ resourceInputs["isDisabled"] = state ? state.isDisabled : undefined;
67
+ resourceInputs["name"] = state ? state.name : undefined;
68
+ resourceInputs["power"] = state ? state.power : undefined;
69
+ resourceInputs["powerId"] = state ? state.powerId : undefined;
70
+ resourceInputs["principalArn"] = state ? state.principalArn : undefined;
71
+ resourceInputs["privateDomainName"] = state ? state.privateDomainName : undefined;
72
+ resourceInputs["publicDomainNames"] = state ? state.publicDomainNames : undefined;
73
+ resourceInputs["resourceType"] = state ? state.resourceType : undefined;
74
+ resourceInputs["scale"] = state ? state.scale : undefined;
75
+ resourceInputs["state"] = state ? state.state : undefined;
76
+ resourceInputs["tags"] = state ? state.tags : undefined;
77
+ resourceInputs["tagsAll"] = state ? state.tagsAll : undefined;
78
+ resourceInputs["url"] = state ? state.url : undefined;
79
+ }
80
+ else {
81
+ const args = argsOrState;
82
+ if ((!args || args.power === undefined) && !opts.urn) {
83
+ throw new Error("Missing required property 'power'");
84
+ }
85
+ if ((!args || args.scale === undefined) && !opts.urn) {
86
+ throw new Error("Missing required property 'scale'");
87
+ }
88
+ resourceInputs["isDisabled"] = args ? args.isDisabled : undefined;
89
+ resourceInputs["name"] = args ? args.name : undefined;
90
+ resourceInputs["power"] = args ? args.power : undefined;
91
+ resourceInputs["publicDomainNames"] = args ? args.publicDomainNames : undefined;
92
+ resourceInputs["scale"] = args ? args.scale : undefined;
93
+ resourceInputs["tags"] = args ? args.tags : undefined;
94
+ resourceInputs["tagsAll"] = args ? args.tagsAll : undefined;
95
+ resourceInputs["arn"] = undefined /*out*/;
96
+ resourceInputs["availabilityZone"] = undefined /*out*/;
97
+ resourceInputs["createdAt"] = undefined /*out*/;
98
+ resourceInputs["powerId"] = undefined /*out*/;
99
+ resourceInputs["principalArn"] = undefined /*out*/;
100
+ resourceInputs["privateDomainName"] = undefined /*out*/;
101
+ resourceInputs["resourceType"] = undefined /*out*/;
102
+ resourceInputs["state"] = undefined /*out*/;
103
+ resourceInputs["url"] = undefined /*out*/;
104
+ }
105
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
106
+ super(ContainerService.__pulumiType, name, resourceInputs, opts);
107
+ }
108
+ /**
109
+ * Get an existing ContainerService resource's state with the given name, ID, and optional extra
110
+ * properties used to qualify the lookup.
111
+ *
112
+ * @param name The _unique_ name of the resulting resource.
113
+ * @param id The _unique_ provider ID of the resource to lookup.
114
+ * @param state Any extra arguments used during the lookup.
115
+ * @param opts Optional settings to control the behavior of the CustomResource.
116
+ */
117
+ static get(name, id, state, opts) {
118
+ return new ContainerService(name, state, Object.assign(Object.assign({}, opts), { id: id }));
119
+ }
120
+ /**
121
+ * Returns true if the given object is an instance of ContainerService. This is designed to work even
122
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
123
+ */
124
+ static isInstance(obj) {
125
+ if (obj === undefined || obj === null) {
126
+ return false;
127
+ }
128
+ return obj['__pulumiType'] === ContainerService.__pulumiType;
129
+ }
130
+ }
131
+ exports.ContainerService = ContainerService;
132
+ /** @internal */
133
+ ContainerService.__pulumiType = 'aws:lightsail/containerService:ContainerService';
134
+ //# sourceMappingURL=containerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"containerService.js","sourceRoot":"","sources":["../../lightsail/containerService.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAsGvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cA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