@pulumi/aws-native 0.9.0 → 0.9.1-alpha.1640255632

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 (50) hide show
  1. package/autoscaling/launchConfiguration.d.ts +115 -4
  2. package/autoscaling/launchConfiguration.js +1 -6
  3. package/autoscaling/launchConfiguration.js.map +1 -1
  4. package/ec2/vpngatewayRoutePropagation.d.ts +0 -12
  5. package/ec2/vpngatewayRoutePropagation.js.map +1 -1
  6. package/index.d.ts +2 -1
  7. package/index.js +5 -3
  8. package/index.js.map +1 -1
  9. package/inspectorv2/filter.d.ts +70 -0
  10. package/inspectorv2/filter.js +72 -0
  11. package/inspectorv2/filter.js.map +1 -0
  12. package/inspectorv2/index.d.ts +2 -0
  13. package/inspectorv2/index.js +35 -0
  14. package/inspectorv2/index.js.map +1 -0
  15. package/iotanalytics/datastore.d.ts +0 -3
  16. package/iotanalytics/datastore.js +0 -5
  17. package/iotanalytics/datastore.js.map +1 -1
  18. package/lightsail/alarm.d.ts +126 -0
  19. package/lightsail/alarm.js +97 -0
  20. package/lightsail/alarm.js.map +1 -0
  21. package/lightsail/bucket.d.ts +93 -0
  22. package/lightsail/bucket.js +79 -0
  23. package/lightsail/bucket.js.map +1 -0
  24. package/lightsail/index.d.ts +4 -0
  25. package/lightsail/index.js +16 -0
  26. package/lightsail/index.js.map +1 -1
  27. package/lightsail/loadBalancer.d.ts +99 -0
  28. package/lightsail/loadBalancer.js +77 -0
  29. package/lightsail/loadBalancer.js.map +1 -0
  30. package/lightsail/loadBalancerTlsCertificate.d.ts +78 -0
  31. package/lightsail/loadBalancerTlsCertificate.js +79 -0
  32. package/lightsail/loadBalancerTlsCertificate.js.map +1 -0
  33. package/package.json +2 -2
  34. package/package.json.dev +1 -1
  35. package/route53resolver/resolverRuleAssociation.d.ts +3 -21
  36. package/route53resolver/resolverRuleAssociation.js +5 -0
  37. package/route53resolver/resolverRuleAssociation.js.map +1 -1
  38. package/timestream/scheduledQuery.d.ts +8 -8
  39. package/types/enums/index.d.ts +2 -1
  40. package/types/enums/index.js +4 -2
  41. package/types/enums/index.js.map +1 -1
  42. package/types/enums/inspectorv2/index.d.ts +15 -0
  43. package/types/enums/inspectorv2/index.js +18 -0
  44. package/types/enums/inspectorv2/index.js.map +1 -0
  45. package/types/enums/s3/index.d.ts +3 -0
  46. package/types/enums/s3/index.js +3 -0
  47. package/types/enums/s3/index.js.map +1 -1
  48. package/types/enums/timestream/index.d.ts +4 -4
  49. package/types/input.d.ts +167 -15
  50. package/types/output.d.ts +167 -15
@@ -0,0 +1,126 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Resource Type definition for AWS::Lightsail::Alarm
4
+ */
5
+ export declare class Alarm extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing Alarm resource's state with the given name, ID, and optional extra
8
+ * properties used to qualify the lookup.
9
+ *
10
+ * @param name The _unique_ name of the resulting resource.
11
+ * @param id The _unique_ provider ID of the resource to lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Alarm;
15
+ /**
16
+ * Returns true if the given object is an instance of Alarm. This is designed to work even
17
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
+ */
19
+ static isInstance(obj: any): obj is Alarm;
20
+ readonly alarmArn: pulumi.Output<string>;
21
+ /**
22
+ * The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm.
23
+ */
24
+ readonly alarmName: pulumi.Output<string>;
25
+ /**
26
+ * The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand.
27
+ */
28
+ readonly comparisonOperator: pulumi.Output<string>;
29
+ /**
30
+ * The contact protocols to use for the alarm, such as Email, SMS (text messaging), or both.
31
+ */
32
+ readonly contactProtocols: pulumi.Output<string[] | undefined>;
33
+ /**
34
+ * The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an "M out of N" alarm, this value (datapointsToAlarm) is the M.
35
+ */
36
+ readonly datapointsToAlarm: pulumi.Output<number | undefined>;
37
+ /**
38
+ * The number of most recent periods over which data is compared to the specified threshold. If you are setting an "M out of N" alarm, this value (evaluationPeriods) is the N.
39
+ */
40
+ readonly evaluationPeriods: pulumi.Output<number>;
41
+ /**
42
+ * The name of the metric to associate with the alarm.
43
+ */
44
+ readonly metricName: pulumi.Output<string>;
45
+ /**
46
+ * The validation status of the SSL/TLS certificate.
47
+ */
48
+ readonly monitoredResourceName: pulumi.Output<string>;
49
+ /**
50
+ * Indicates whether the alarm is enabled. Notifications are enabled by default if you don't specify this parameter.
51
+ */
52
+ readonly notificationEnabled: pulumi.Output<boolean | undefined>;
53
+ /**
54
+ * The alarm states that trigger a notification.
55
+ */
56
+ readonly notificationTriggers: pulumi.Output<string[] | undefined>;
57
+ /**
58
+ * The current state of the alarm.
59
+ */
60
+ readonly state: pulumi.Output<string>;
61
+ /**
62
+ * The value against which the specified statistic is compared.
63
+ */
64
+ readonly threshold: pulumi.Output<number>;
65
+ /**
66
+ * Sets how this alarm will handle missing data points.
67
+ */
68
+ readonly treatMissingData: pulumi.Output<string | undefined>;
69
+ /**
70
+ * Create a Alarm resource with the given unique name, arguments, and options.
71
+ *
72
+ * @param name The _unique_ name of the resource.
73
+ * @param args The arguments to use to populate this resource's properties.
74
+ * @param opts A bag of options that control this resource's behavior.
75
+ */
76
+ constructor(name: string, args: AlarmArgs, opts?: pulumi.CustomResourceOptions);
77
+ }
78
+ /**
79
+ * The set of arguments for constructing a Alarm resource.
80
+ */
81
+ export interface AlarmArgs {
82
+ /**
83
+ * The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm.
84
+ */
85
+ alarmName?: pulumi.Input<string>;
86
+ /**
87
+ * The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand.
88
+ */
89
+ comparisonOperator: pulumi.Input<string>;
90
+ /**
91
+ * The contact protocols to use for the alarm, such as Email, SMS (text messaging), or both.
92
+ */
93
+ contactProtocols?: pulumi.Input<pulumi.Input<string>[]>;
94
+ /**
95
+ * The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an "M out of N" alarm, this value (datapointsToAlarm) is the M.
96
+ */
97
+ datapointsToAlarm?: pulumi.Input<number>;
98
+ /**
99
+ * The number of most recent periods over which data is compared to the specified threshold. If you are setting an "M out of N" alarm, this value (evaluationPeriods) is the N.
100
+ */
101
+ evaluationPeriods: pulumi.Input<number>;
102
+ /**
103
+ * The name of the metric to associate with the alarm.
104
+ */
105
+ metricName: pulumi.Input<string>;
106
+ /**
107
+ * The validation status of the SSL/TLS certificate.
108
+ */
109
+ monitoredResourceName: pulumi.Input<string>;
110
+ /**
111
+ * Indicates whether the alarm is enabled. Notifications are enabled by default if you don't specify this parameter.
112
+ */
113
+ notificationEnabled?: pulumi.Input<boolean>;
114
+ /**
115
+ * The alarm states that trigger a notification.
116
+ */
117
+ notificationTriggers?: pulumi.Input<pulumi.Input<string>[]>;
118
+ /**
119
+ * The value against which the specified statistic is compared.
120
+ */
121
+ threshold: pulumi.Input<number>;
122
+ /**
123
+ * Sets how this alarm will handle missing data points.
124
+ */
125
+ treatMissingData?: pulumi.Input<string>;
126
+ }
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi SDK Generator. ***
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.Alarm = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Resource Type definition for AWS::Lightsail::Alarm
10
+ */
11
+ class Alarm extends pulumi.CustomResource {
12
+ /**
13
+ * Create a Alarm resource with the given unique name, arguments, and options.
14
+ *
15
+ * @param name The _unique_ name of the resource.
16
+ * @param args The arguments to use to populate this resource's properties.
17
+ * @param opts A bag of options that control this resource's behavior.
18
+ */
19
+ constructor(name, args, opts) {
20
+ let inputs = {};
21
+ opts = opts || {};
22
+ if (!opts.id) {
23
+ if ((!args || args.comparisonOperator === undefined) && !opts.urn) {
24
+ throw new Error("Missing required property 'comparisonOperator'");
25
+ }
26
+ if ((!args || args.evaluationPeriods === undefined) && !opts.urn) {
27
+ throw new Error("Missing required property 'evaluationPeriods'");
28
+ }
29
+ if ((!args || args.metricName === undefined) && !opts.urn) {
30
+ throw new Error("Missing required property 'metricName'");
31
+ }
32
+ if ((!args || args.monitoredResourceName === undefined) && !opts.urn) {
33
+ throw new Error("Missing required property 'monitoredResourceName'");
34
+ }
35
+ if ((!args || args.threshold === undefined) && !opts.urn) {
36
+ throw new Error("Missing required property 'threshold'");
37
+ }
38
+ inputs["alarmName"] = args ? args.alarmName : undefined;
39
+ inputs["comparisonOperator"] = args ? args.comparisonOperator : undefined;
40
+ inputs["contactProtocols"] = args ? args.contactProtocols : undefined;
41
+ inputs["datapointsToAlarm"] = args ? args.datapointsToAlarm : undefined;
42
+ inputs["evaluationPeriods"] = args ? args.evaluationPeriods : undefined;
43
+ inputs["metricName"] = args ? args.metricName : undefined;
44
+ inputs["monitoredResourceName"] = args ? args.monitoredResourceName : undefined;
45
+ inputs["notificationEnabled"] = args ? args.notificationEnabled : undefined;
46
+ inputs["notificationTriggers"] = args ? args.notificationTriggers : undefined;
47
+ inputs["threshold"] = args ? args.threshold : undefined;
48
+ inputs["treatMissingData"] = args ? args.treatMissingData : undefined;
49
+ inputs["alarmArn"] = undefined /*out*/;
50
+ inputs["state"] = undefined /*out*/;
51
+ }
52
+ else {
53
+ inputs["alarmArn"] = undefined /*out*/;
54
+ inputs["alarmName"] = undefined /*out*/;
55
+ inputs["comparisonOperator"] = undefined /*out*/;
56
+ inputs["contactProtocols"] = undefined /*out*/;
57
+ inputs["datapointsToAlarm"] = undefined /*out*/;
58
+ inputs["evaluationPeriods"] = undefined /*out*/;
59
+ inputs["metricName"] = undefined /*out*/;
60
+ inputs["monitoredResourceName"] = undefined /*out*/;
61
+ inputs["notificationEnabled"] = undefined /*out*/;
62
+ inputs["notificationTriggers"] = undefined /*out*/;
63
+ inputs["state"] = undefined /*out*/;
64
+ inputs["threshold"] = undefined /*out*/;
65
+ inputs["treatMissingData"] = undefined /*out*/;
66
+ }
67
+ if (!opts.version) {
68
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
69
+ }
70
+ super(Alarm.__pulumiType, name, inputs, opts);
71
+ }
72
+ /**
73
+ * Get an existing Alarm resource's state with the given name, ID, and optional extra
74
+ * properties used to qualify the lookup.
75
+ *
76
+ * @param name The _unique_ name of the resulting resource.
77
+ * @param id The _unique_ provider ID of the resource to lookup.
78
+ * @param opts Optional settings to control the behavior of the CustomResource.
79
+ */
80
+ static get(name, id, opts) {
81
+ return new Alarm(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
82
+ }
83
+ /**
84
+ * Returns true if the given object is an instance of Alarm. This is designed to work even
85
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
86
+ */
87
+ static isInstance(obj) {
88
+ if (obj === undefined || obj === null) {
89
+ return false;
90
+ }
91
+ return obj['__pulumiType'] === Alarm.__pulumiType;
92
+ }
93
+ }
94
+ exports.Alarm = Alarm;
95
+ /** @internal */
96
+ Alarm.__pulumiType = 'aws-native:lightsail:Alarm';
97
+ //# sourceMappingURL=alarm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alarm.js","sourceRoot":"","sources":["../../lightsail/alarm.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IA6E5C;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAe,EAAE,IAAmC;QAC1E,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,I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AAgB;AACO,kBAAY,GAAG,4BAA4B,CAAC"}
@@ -0,0 +1,93 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * Resource Type definition for AWS::Lightsail::Bucket
5
+ */
6
+ export declare class Bucket extends pulumi.CustomResource {
7
+ /**
8
+ * Get an existing Bucket resource's state with the given name, ID, and optional extra
9
+ * properties used to qualify the lookup.
10
+ *
11
+ * @param name The _unique_ name of the resulting resource.
12
+ * @param id The _unique_ provider ID of the resource to lookup.
13
+ * @param opts Optional settings to control the behavior of the CustomResource.
14
+ */
15
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Bucket;
16
+ /**
17
+ * Returns true if the given object is an instance of Bucket. This is designed to work even
18
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
19
+ */
20
+ static isInstance(obj: any): obj is Bucket;
21
+ /**
22
+ * Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle. You can update a bucket's bundle only one time within a monthly AWS billing cycle.
23
+ */
24
+ readonly ableToUpdateBundle: pulumi.Output<boolean>;
25
+ readonly accessRules: pulumi.Output<outputs.lightsail.BucketAccessRules | undefined>;
26
+ readonly bucketArn: pulumi.Output<string>;
27
+ /**
28
+ * The name for the bucket.
29
+ */
30
+ readonly bucketName: pulumi.Output<string>;
31
+ /**
32
+ * The ID of the bundle to use for the bucket.
33
+ */
34
+ readonly bundleId: pulumi.Output<string>;
35
+ /**
36
+ * Specifies whether to enable or disable versioning of objects in the bucket.
37
+ */
38
+ readonly objectVersioning: pulumi.Output<boolean | undefined>;
39
+ /**
40
+ * An array of strings to specify the AWS account IDs that can access the bucket.
41
+ */
42
+ readonly readOnlyAccessAccounts: pulumi.Output<string[] | undefined>;
43
+ /**
44
+ * The names of the Lightsail resources for which to set bucket access.
45
+ */
46
+ readonly resourcesReceivingAccess: pulumi.Output<string[] | undefined>;
47
+ /**
48
+ * An array of key-value pairs to apply to this resource.
49
+ */
50
+ readonly tags: pulumi.Output<outputs.lightsail.BucketTag[] | undefined>;
51
+ /**
52
+ * The URL of the bucket.
53
+ */
54
+ readonly url: pulumi.Output<string>;
55
+ /**
56
+ * Create a Bucket resource with the given unique name, arguments, and options.
57
+ *
58
+ * @param name The _unique_ name of the resource.
59
+ * @param args The arguments to use to populate this resource's properties.
60
+ * @param opts A bag of options that control this resource's behavior.
61
+ */
62
+ constructor(name: string, args: BucketArgs, opts?: pulumi.CustomResourceOptions);
63
+ }
64
+ /**
65
+ * The set of arguments for constructing a Bucket resource.
66
+ */
67
+ export interface BucketArgs {
68
+ accessRules?: pulumi.Input<inputs.lightsail.BucketAccessRulesArgs>;
69
+ /**
70
+ * The name for the bucket.
71
+ */
72
+ bucketName?: pulumi.Input<string>;
73
+ /**
74
+ * The ID of the bundle to use for the bucket.
75
+ */
76
+ bundleId: pulumi.Input<string>;
77
+ /**
78
+ * Specifies whether to enable or disable versioning of objects in the bucket.
79
+ */
80
+ objectVersioning?: pulumi.Input<boolean>;
81
+ /**
82
+ * An array of strings to specify the AWS account IDs that can access the bucket.
83
+ */
84
+ readOnlyAccessAccounts?: pulumi.Input<pulumi.Input<string>[]>;
85
+ /**
86
+ * The names of the Lightsail resources for which to set bucket access.
87
+ */
88
+ resourcesReceivingAccess?: pulumi.Input<pulumi.Input<string>[]>;
89
+ /**
90
+ * An array of key-value pairs to apply to this resource.
91
+ */
92
+ tags?: pulumi.Input<pulumi.Input<inputs.lightsail.BucketTagArgs>[]>;
93
+ }
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi SDK Generator. ***
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.Bucket = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Resource Type definition for AWS::Lightsail::Bucket
10
+ */
11
+ class Bucket extends pulumi.CustomResource {
12
+ /**
13
+ * Create a Bucket resource with the given unique name, arguments, and options.
14
+ *
15
+ * @param name The _unique_ name of the resource.
16
+ * @param args The arguments to use to populate this resource's properties.
17
+ * @param opts A bag of options that control this resource's behavior.
18
+ */
19
+ constructor(name, args, opts) {
20
+ let inputs = {};
21
+ opts = opts || {};
22
+ if (!opts.id) {
23
+ if ((!args || args.bundleId === undefined) && !opts.urn) {
24
+ throw new Error("Missing required property 'bundleId'");
25
+ }
26
+ inputs["accessRules"] = args ? args.accessRules : undefined;
27
+ inputs["bucketName"] = args ? args.bucketName : undefined;
28
+ inputs["bundleId"] = args ? args.bundleId : undefined;
29
+ inputs["objectVersioning"] = args ? args.objectVersioning : undefined;
30
+ inputs["readOnlyAccessAccounts"] = args ? args.readOnlyAccessAccounts : undefined;
31
+ inputs["resourcesReceivingAccess"] = args ? args.resourcesReceivingAccess : undefined;
32
+ inputs["tags"] = args ? args.tags : undefined;
33
+ inputs["ableToUpdateBundle"] = undefined /*out*/;
34
+ inputs["bucketArn"] = undefined /*out*/;
35
+ inputs["url"] = undefined /*out*/;
36
+ }
37
+ else {
38
+ inputs["ableToUpdateBundle"] = undefined /*out*/;
39
+ inputs["accessRules"] = undefined /*out*/;
40
+ inputs["bucketArn"] = undefined /*out*/;
41
+ inputs["bucketName"] = undefined /*out*/;
42
+ inputs["bundleId"] = undefined /*out*/;
43
+ inputs["objectVersioning"] = undefined /*out*/;
44
+ inputs["readOnlyAccessAccounts"] = undefined /*out*/;
45
+ inputs["resourcesReceivingAccess"] = undefined /*out*/;
46
+ inputs["tags"] = undefined /*out*/;
47
+ inputs["url"] = undefined /*out*/;
48
+ }
49
+ if (!opts.version) {
50
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
51
+ }
52
+ super(Bucket.__pulumiType, name, inputs, opts);
53
+ }
54
+ /**
55
+ * Get an existing Bucket resource's state with the given name, ID, and optional extra
56
+ * properties used to qualify the lookup.
57
+ *
58
+ * @param name The _unique_ name of the resulting resource.
59
+ * @param id The _unique_ provider ID of the resource to lookup.
60
+ * @param opts Optional settings to control the behavior of the CustomResource.
61
+ */
62
+ static get(name, id, opts) {
63
+ return new Bucket(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
64
+ }
65
+ /**
66
+ * Returns true if the given object is an instance of Bucket. This is designed to work even
67
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
68
+ */
69
+ static isInstance(obj) {
70
+ if (obj === undefined || obj === null) {
71
+ return false;
72
+ }
73
+ return obj['__pulumiType'] === Bucket.__pulumiType;
74
+ }
75
+ }
76
+ exports.Bucket = Bucket;
77
+ /** @internal */
78
+ Bucket.__pulumiType = 'aws-native:lightsail:Bucket';
79
+ //# sourceMappingURL=bucket.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bucket.js","sourceRoot":"","sources":["../../lightsail/bucket.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IA8D7C;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAgB,EAAE,IAAmC;QAC3E,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1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AO,CAAC;YACvD,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnC,MAAM,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrC;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACnD,CAAC;IArGD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AAzBL,wBAuGC;AA1FG,gBAAgB;AACO,mBAAY,GAAG,6BAA6B,CAAC"}
@@ -1,5 +1,9 @@
1
+ export * from "./alarm";
2
+ export * from "./bucket";
1
3
  export * from "./database";
2
4
  export * from "./disk";
3
5
  export * from "./instance";
6
+ export * from "./loadBalancer";
7
+ export * from "./loadBalancerTlsCertificate";
4
8
  export * from "./staticIp";
5
9
  export * from "../types/enums/lightsail";
@@ -15,27 +15,43 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const pulumi = require("@pulumi/pulumi");
16
16
  const utilities = require("../utilities");
17
17
  // Export members:
18
+ __exportStar(require("./alarm"), exports);
19
+ __exportStar(require("./bucket"), exports);
18
20
  __exportStar(require("./database"), exports);
19
21
  __exportStar(require("./disk"), exports);
20
22
  __exportStar(require("./instance"), exports);
23
+ __exportStar(require("./loadBalancer"), exports);
24
+ __exportStar(require("./loadBalancerTlsCertificate"), exports);
21
25
  __exportStar(require("./staticIp"), exports);
22
26
  // Export enums:
23
27
  __exportStar(require("../types/enums/lightsail"), exports);
24
28
  // Import resources to register:
29
+ const alarm_1 = require("./alarm");
30
+ const bucket_1 = require("./bucket");
25
31
  const database_1 = require("./database");
26
32
  const disk_1 = require("./disk");
27
33
  const instance_1 = require("./instance");
34
+ const loadBalancer_1 = require("./loadBalancer");
35
+ const loadBalancerTlsCertificate_1 = require("./loadBalancerTlsCertificate");
28
36
  const staticIp_1 = require("./staticIp");
29
37
  const _module = {
30
38
  version: utilities.getVersion(),
31
39
  construct: (name, type, urn) => {
32
40
  switch (type) {
41
+ case "aws-native:lightsail:Alarm":
42
+ return new alarm_1.Alarm(name, undefined, { urn });
43
+ case "aws-native:lightsail:Bucket":
44
+ return new bucket_1.Bucket(name, undefined, { urn });
33
45
  case "aws-native:lightsail:Database":
34
46
  return new database_1.Database(name, undefined, { urn });
35
47
  case "aws-native:lightsail:Disk":
36
48
  return new disk_1.Disk(name, undefined, { urn });
37
49
  case "aws-native:lightsail:Instance":
38
50
  return new instance_1.Instance(name, undefined, { urn });
51
+ case "aws-native:lightsail:LoadBalancer":
52
+ return new loadBalancer_1.LoadBalancer(name, undefined, { urn });
53
+ case "aws-native:lightsail:LoadBalancerTlsCertificate":
54
+ return new loadBalancerTlsCertificate_1.LoadBalancerTlsCertificate(name, undefined, { urn });
39
55
  case "aws-native:lightsail:StaticIp":
40
56
  return new staticIp_1.StaticIp(name, undefined, { urn });
41
57
  default:
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lightsail/index.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,k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AE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,99 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * Resource Type definition for AWS::Lightsail::LoadBalancer
5
+ */
6
+ export declare class LoadBalancer extends pulumi.CustomResource {
7
+ /**
8
+ * Get an existing LoadBalancer resource's state with the given name, ID, and optional extra
9
+ * properties used to qualify the lookup.
10
+ *
11
+ * @param name The _unique_ name of the resulting resource.
12
+ * @param id The _unique_ provider ID of the resource to lookup.
13
+ * @param opts Optional settings to control the behavior of the CustomResource.
14
+ */
15
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): LoadBalancer;
16
+ /**
17
+ * Returns true if the given object is an instance of LoadBalancer. This is designed to work even
18
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
19
+ */
20
+ static isInstance(obj: any): obj is LoadBalancer;
21
+ /**
22
+ * The names of the instances attached to the load balancer.
23
+ */
24
+ readonly attachedInstances: pulumi.Output<string[] | undefined>;
25
+ /**
26
+ * The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").
27
+ */
28
+ readonly healthCheckPath: pulumi.Output<string | undefined>;
29
+ /**
30
+ * The instance port where you're creating your load balancer.
31
+ */
32
+ readonly instancePort: pulumi.Output<number>;
33
+ /**
34
+ * The IP address type for the load balancer. The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6. The default value is dualstack.
35
+ */
36
+ readonly ipAddressType: pulumi.Output<string | undefined>;
37
+ readonly loadBalancerArn: pulumi.Output<string>;
38
+ /**
39
+ * The name of your load balancer.
40
+ */
41
+ readonly loadBalancerName: pulumi.Output<string>;
42
+ /**
43
+ * Configuration option to enable session stickiness.
44
+ */
45
+ readonly sessionStickinessEnabled: pulumi.Output<boolean | undefined>;
46
+ /**
47
+ * Configuration option to adjust session stickiness cookie duration parameter.
48
+ */
49
+ readonly sessionStickinessLBCookieDurationSeconds: pulumi.Output<string | undefined>;
50
+ /**
51
+ * An array of key-value pairs to apply to this resource.
52
+ */
53
+ readonly tags: pulumi.Output<outputs.lightsail.LoadBalancerTag[] | undefined>;
54
+ /**
55
+ * Create a LoadBalancer resource with the given unique name, arguments, and options.
56
+ *
57
+ * @param name The _unique_ name of the resource.
58
+ * @param args The arguments to use to populate this resource's properties.
59
+ * @param opts A bag of options that control this resource's behavior.
60
+ */
61
+ constructor(name: string, args: LoadBalancerArgs, opts?: pulumi.CustomResourceOptions);
62
+ }
63
+ /**
64
+ * The set of arguments for constructing a LoadBalancer resource.
65
+ */
66
+ export interface LoadBalancerArgs {
67
+ /**
68
+ * The names of the instances attached to the load balancer.
69
+ */
70
+ attachedInstances?: pulumi.Input<pulumi.Input<string>[]>;
71
+ /**
72
+ * The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").
73
+ */
74
+ healthCheckPath?: pulumi.Input<string>;
75
+ /**
76
+ * The instance port where you're creating your load balancer.
77
+ */
78
+ instancePort: pulumi.Input<number>;
79
+ /**
80
+ * The IP address type for the load balancer. The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6. The default value is dualstack.
81
+ */
82
+ ipAddressType?: pulumi.Input<string>;
83
+ /**
84
+ * The name of your load balancer.
85
+ */
86
+ loadBalancerName?: pulumi.Input<string>;
87
+ /**
88
+ * Configuration option to enable session stickiness.
89
+ */
90
+ sessionStickinessEnabled?: pulumi.Input<boolean>;
91
+ /**
92
+ * Configuration option to adjust session stickiness cookie duration parameter.
93
+ */
94
+ sessionStickinessLBCookieDurationSeconds?: pulumi.Input<string>;
95
+ /**
96
+ * An array of key-value pairs to apply to this resource.
97
+ */
98
+ tags?: pulumi.Input<pulumi.Input<inputs.lightsail.LoadBalancerTagArgs>[]>;
99
+ }
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi SDK Generator. ***
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.LoadBalancer = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Resource Type definition for AWS::Lightsail::LoadBalancer
10
+ */
11
+ class LoadBalancer extends pulumi.CustomResource {
12
+ /**
13
+ * Create a LoadBalancer resource with the given unique name, arguments, and options.
14
+ *
15
+ * @param name The _unique_ name of the resource.
16
+ * @param args The arguments to use to populate this resource's properties.
17
+ * @param opts A bag of options that control this resource's behavior.
18
+ */
19
+ constructor(name, args, opts) {
20
+ let inputs = {};
21
+ opts = opts || {};
22
+ if (!opts.id) {
23
+ if ((!args || args.instancePort === undefined) && !opts.urn) {
24
+ throw new Error("Missing required property 'instancePort'");
25
+ }
26
+ inputs["attachedInstances"] = args ? args.attachedInstances : undefined;
27
+ inputs["healthCheckPath"] = args ? args.healthCheckPath : undefined;
28
+ inputs["instancePort"] = args ? args.instancePort : undefined;
29
+ inputs["ipAddressType"] = args ? args.ipAddressType : undefined;
30
+ inputs["loadBalancerName"] = args ? args.loadBalancerName : undefined;
31
+ inputs["sessionStickinessEnabled"] = args ? args.sessionStickinessEnabled : undefined;
32
+ inputs["sessionStickinessLBCookieDurationSeconds"] = args ? args.sessionStickinessLBCookieDurationSeconds : undefined;
33
+ inputs["tags"] = args ? args.tags : undefined;
34
+ inputs["loadBalancerArn"] = undefined /*out*/;
35
+ }
36
+ else {
37
+ inputs["attachedInstances"] = undefined /*out*/;
38
+ inputs["healthCheckPath"] = undefined /*out*/;
39
+ inputs["instancePort"] = undefined /*out*/;
40
+ inputs["ipAddressType"] = undefined /*out*/;
41
+ inputs["loadBalancerArn"] = undefined /*out*/;
42
+ inputs["loadBalancerName"] = undefined /*out*/;
43
+ inputs["sessionStickinessEnabled"] = undefined /*out*/;
44
+ inputs["sessionStickinessLBCookieDurationSeconds"] = undefined /*out*/;
45
+ inputs["tags"] = undefined /*out*/;
46
+ }
47
+ if (!opts.version) {
48
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
49
+ }
50
+ super(LoadBalancer.__pulumiType, name, inputs, opts);
51
+ }
52
+ /**
53
+ * Get an existing LoadBalancer resource's state with the given name, ID, and optional extra
54
+ * properties used to qualify the lookup.
55
+ *
56
+ * @param name The _unique_ name of the resulting resource.
57
+ * @param id The _unique_ provider ID of the resource to lookup.
58
+ * @param opts Optional settings to control the behavior of the CustomResource.
59
+ */
60
+ static get(name, id, opts) {
61
+ return new LoadBalancer(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
62
+ }
63
+ /**
64
+ * Returns true if the given object is an instance of LoadBalancer. 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) {
68
+ if (obj === undefined || obj === null) {
69
+ return false;
70
+ }
71
+ return obj['__pulumiType'] === LoadBalancer.__pulumiType;
72
+ }
73
+ }
74
+ exports.LoadBalancer = LoadBalancer;
75
+ /** @internal */
76
+ LoadBalancer.__pulumiType = 'aws-native:lightsail:LoadBalancer';
77
+ //# sourceMappingURL=loadBalancer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadBalancer.js","sourceRoot":"","sources":["../../lightsail/loadBalancer.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IA6DnD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAsB,EAAE,IAAmC;QACjF,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IA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