@pulumi/aws 6.76.0-alpha.1743712502 → 6.76.0-alpha.1744129064

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 (57) hide show
  1. package/amp/scraper.d.ts +12 -0
  2. package/amp/scraper.js +2 -0
  3. package/amp/scraper.js.map +1 -1
  4. package/apprunner/customDomainAssociation.d.ts +1 -1
  5. package/apprunner/customDomainAssociation.js +1 -1
  6. package/chime/index.d.ts +3 -0
  7. package/chime/index.js +6 -1
  8. package/chime/index.js.map +1 -1
  9. package/chime/voiceConnectorOrganization.d.ts +4 -1
  10. package/chime/voiceConnectorOrganization.js +6 -1
  11. package/chime/voiceConnectorOrganization.js.map +1 -1
  12. package/chime/voiceConnectorOrigination.d.ts +117 -0
  13. package/chime/voiceConnectorOrigination.js +104 -0
  14. package/chime/voiceConnectorOrigination.js.map +1 -0
  15. package/directoryservice/conditionalForwader.d.ts +4 -1
  16. package/directoryservice/conditionalForwader.js +6 -1
  17. package/directoryservice/conditionalForwader.js.map +1 -1
  18. package/directoryservice/conditionalForwarder.d.ts +99 -0
  19. package/directoryservice/conditionalForwarder.js +91 -0
  20. package/directoryservice/conditionalForwarder.js.map +1 -0
  21. package/directoryservice/index.d.ts +6 -0
  22. package/directoryservice/index.js +11 -1
  23. package/directoryservice/index.js.map +1 -1
  24. package/directoryservice/logService.d.ts +4 -1
  25. package/directoryservice/logService.js +6 -1
  26. package/directoryservice/logService.js.map +1 -1
  27. package/directoryservice/logSubscription.d.ts +105 -0
  28. package/directoryservice/logSubscription.js +104 -0
  29. package/directoryservice/logSubscription.js.map +1 -0
  30. package/ec2/ami.d.ts +11 -3
  31. package/ec2/ami.js +2 -0
  32. package/ec2/ami.js.map +1 -1
  33. package/ec2/amiCopy.d.ts +10 -2
  34. package/ec2/amiCopy.js +2 -0
  35. package/ec2/amiCopy.js.map +1 -1
  36. package/ec2/amiFromInstance.d.ts +10 -2
  37. package/ec2/amiFromInstance.js +2 -0
  38. package/ec2/amiFromInstance.js.map +1 -1
  39. package/ec2/getAmi.d.ts +4 -0
  40. package/ec2/getAmi.js.map +1 -1
  41. package/glue/job.d.ts +12 -0
  42. package/glue/job.js +2 -0
  43. package/glue/job.js.map +1 -1
  44. package/package.json +2 -2
  45. package/s3tables/table.d.ts +3 -3
  46. package/s3tables/tableBucket.d.ts +3 -3
  47. package/sqs/queue.d.ts +9 -11
  48. package/sqs/queue.js +0 -2
  49. package/sqs/queue.js.map +1 -1
  50. package/ssm/maintenanceWindow.d.ts +3 -3
  51. package/ssm/parameter.d.ts +4 -10
  52. package/ssm/parameter.js +1 -1
  53. package/ssm/parameter.js.map +1 -1
  54. package/types/input.d.ts +83 -10
  55. package/types/input.js.map +1 -1
  56. package/types/output.d.ts +86 -13
  57. package/types/output.js.map +1 -1
@@ -0,0 +1,91 @@
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.ConditionalForwarder = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a conditional forwarder for managed Microsoft AD in AWS Directory Service.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as aws from "@pulumi/aws";
16
+ *
17
+ * const example = new aws.directoryservice.ConditionalForwarder("example", {
18
+ * directoryId: ad.id,
19
+ * remoteDomainName: "example.com",
20
+ * dnsIps: [
21
+ * "8.8.8.8",
22
+ * "8.8.4.4",
23
+ * ],
24
+ * });
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * Using `pulumi import`, import conditional forwarders using the directory id and remote_domain_name. For example:
30
+ *
31
+ * ```sh
32
+ * $ pulumi import aws:directoryservice/conditionalForwarder:ConditionalForwarder example d-1234567890:example.com
33
+ * ```
34
+ */
35
+ class ConditionalForwarder extends pulumi.CustomResource {
36
+ /**
37
+ * Get an existing ConditionalForwarder resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name, id, state, opts) {
46
+ return new ConditionalForwarder(name, state, Object.assign(Object.assign({}, opts), { id: id }));
47
+ }
48
+ /**
49
+ * Returns true if the given object is an instance of ConditionalForwarder. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === ConditionalForwarder.__pulumiType;
57
+ }
58
+ constructor(name, argsOrState, opts) {
59
+ let resourceInputs = {};
60
+ opts = opts || {};
61
+ if (opts.id) {
62
+ const state = argsOrState;
63
+ resourceInputs["directoryId"] = state ? state.directoryId : undefined;
64
+ resourceInputs["dnsIps"] = state ? state.dnsIps : undefined;
65
+ resourceInputs["remoteDomainName"] = state ? state.remoteDomainName : undefined;
66
+ }
67
+ else {
68
+ const args = argsOrState;
69
+ if ((!args || args.directoryId === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'directoryId'");
71
+ }
72
+ if ((!args || args.dnsIps === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'dnsIps'");
74
+ }
75
+ if ((!args || args.remoteDomainName === undefined) && !opts.urn) {
76
+ throw new Error("Missing required property 'remoteDomainName'");
77
+ }
78
+ resourceInputs["directoryId"] = args ? args.directoryId : undefined;
79
+ resourceInputs["dnsIps"] = args ? args.dnsIps : undefined;
80
+ resourceInputs["remoteDomainName"] = args ? args.remoteDomainName : undefined;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ const aliasOpts = { aliases: [{ type: "aws:directoryservice/conditionalForwader:ConditionalForwader" }] };
84
+ opts = pulumi.mergeOptions(opts, aliasOpts);
85
+ super(ConditionalForwarder.__pulumiType, name, resourceInputs, opts);
86
+ }
87
+ }
88
+ exports.ConditionalForwarder = ConditionalForwarder;
89
+ /** @internal */
90
+ ConditionalForwarder.__pulumiType = 'aws:directoryservice/conditionalForwarder:ConditionalForwarder';
91
+ //# sourceMappingURL=conditionalForwarder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditionalForwarder.js","sourceRoot":"","sources":["../../directoryservice/conditionalForwarder.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,W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AC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,8DAA8D,EAAE,CAAC,EAAE,CAAC;QAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AA5EL,oDA6EC;AA/DG,gBAAgB;AACO,iCAAY,GAAG,gEAAgE,CAAC"}
@@ -1,6 +1,9 @@
1
1
  export { ConditionalForwaderArgs, ConditionalForwaderState } from "./conditionalForwader";
2
2
  export type ConditionalForwader = import("./conditionalForwader").ConditionalForwader;
3
3
  export declare const ConditionalForwader: typeof import("./conditionalForwader").ConditionalForwader;
4
+ export { ConditionalForwarderArgs, ConditionalForwarderState } from "./conditionalForwarder";
5
+ export type ConditionalForwarder = import("./conditionalForwarder").ConditionalForwarder;
6
+ export declare const ConditionalForwarder: typeof import("./conditionalForwarder").ConditionalForwarder;
4
7
  export { DirectoryArgs, DirectoryState } from "./directory";
5
8
  export type Directory = import("./directory").Directory;
6
9
  export declare const Directory: typeof import("./directory").Directory;
@@ -10,6 +13,9 @@ export declare const getDirectoryOutput: typeof import("./getDirectory").getDire
10
13
  export { LogServiceArgs, LogServiceState } from "./logService";
11
14
  export type LogService = import("./logService").LogService;
12
15
  export declare const LogService: typeof import("./logService").LogService;
16
+ export { LogSubscriptionArgs, LogSubscriptionState } from "./logSubscription";
17
+ export type LogSubscription = import("./logSubscription").LogSubscription;
18
+ export declare const LogSubscription: typeof import("./logSubscription").LogSubscription;
13
19
  export { RadiusSettingsArgs, RadiusSettingsState } from "./radiusSettings";
14
20
  export type RadiusSettings = import("./radiusSettings").RadiusSettings;
15
21
  export declare const RadiusSettings: typeof import("./radiusSettings").RadiusSettings;
@@ -2,11 +2,13 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Trust = exports.SharedDirectoryAccepter = exports.SharedDirectory = exports.ServiceRegion = exports.RadiusSettings = exports.LogService = exports.getDirectoryOutput = exports.getDirectory = exports.Directory = exports.ConditionalForwader = void 0;
5
+ exports.Trust = exports.SharedDirectoryAccepter = exports.SharedDirectory = exports.ServiceRegion = exports.RadiusSettings = exports.LogSubscription = exports.LogService = exports.getDirectoryOutput = exports.getDirectory = exports.Directory = exports.ConditionalForwarder = exports.ConditionalForwader = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.ConditionalForwader = null;
9
9
  utilities.lazyLoad(exports, ["ConditionalForwader"], () => require("./conditionalForwader"));
10
+ exports.ConditionalForwarder = null;
11
+ utilities.lazyLoad(exports, ["ConditionalForwarder"], () => require("./conditionalForwarder"));
10
12
  exports.Directory = null;
11
13
  utilities.lazyLoad(exports, ["Directory"], () => require("./directory"));
12
14
  exports.getDirectory = null;
@@ -14,6 +16,8 @@ exports.getDirectoryOutput = null;
14
16
  utilities.lazyLoad(exports, ["getDirectory", "getDirectoryOutput"], () => require("./getDirectory"));
15
17
  exports.LogService = null;
16
18
  utilities.lazyLoad(exports, ["LogService"], () => require("./logService"));
19
+ exports.LogSubscription = null;
20
+ utilities.lazyLoad(exports, ["LogSubscription"], () => require("./logSubscription"));
17
21
  exports.RadiusSettings = null;
18
22
  utilities.lazyLoad(exports, ["RadiusSettings"], () => require("./radiusSettings"));
19
23
  exports.ServiceRegion = null;
@@ -30,10 +34,14 @@ const _module = {
30
34
  switch (type) {
31
35
  case "aws:directoryservice/conditionalForwader:ConditionalForwader":
32
36
  return new exports.ConditionalForwader(name, undefined, { urn });
37
+ case "aws:directoryservice/conditionalForwarder:ConditionalForwarder":
38
+ return new exports.ConditionalForwarder(name, undefined, { urn });
33
39
  case "aws:directoryservice/directory:Directory":
34
40
  return new exports.Directory(name, undefined, { urn });
35
41
  case "aws:directoryservice/logService:LogService":
36
42
  return new exports.LogService(name, undefined, { urn });
43
+ case "aws:directoryservice/logSubscription:LogSubscription":
44
+ return new exports.LogSubscription(name, undefined, { urn });
37
45
  case "aws:directoryservice/radiusSettings:RadiusSettings":
38
46
  return new exports.RadiusSettings(name, undefined, { urn });
39
47
  case "aws:directoryservice/serviceRegion:ServiceRegion":
@@ -50,8 +58,10 @@ const _module = {
50
58
  },
51
59
  };
52
60
  pulumi.runtime.registerResourceModule("aws", "directoryservice/conditionalForwader", _module);
61
+ pulumi.runtime.registerResourceModule("aws", "directoryservice/conditionalForwarder", _module);
53
62
  pulumi.runtime.registerResourceModule("aws", "directoryservice/directory", _module);
54
63
  pulumi.runtime.registerResourceModule("aws", "directoryservice/logService", _module);
64
+ pulumi.runtime.registerResourceModule("aws", "directoryservice/logSubscription", _module);
55
65
  pulumi.runtime.registerResourceModule("aws", "directoryservice/radiusSettings", _module);
56
66
  pulumi.runtime.registerResourceModule("aws", "directoryservice/serviceRegion", _module);
57
67
  pulumi.runtime.registerResourceModule("aws", "directoryservice/sharedDirectory", _module);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../directoryservice/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,mBAAmB,GAA+D,IAAW,CAAC;AAC3G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,qBAAqB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAIhF,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAG5D,QAAA,YAAY,GAAiD,IAAW,CAAC;AACzE,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,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACnD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,sCAAsC,EAAE,OAAO,CAAC,CAAA;AAC7F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,uCAAuC,EAAE,OAAO,CAAC,CAAA;AAC9F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,4BAA4B,EAAE,OAAO,CAAC,CAAA;AACnF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAA;AACpF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,kCAAkC,EAAE,OAAO,CAAC,CAAA;AACzF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,iCAAiC,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAA;AACvF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,kCAAkC,EAAE,OAAO,CAAC,CAAA;AACzF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,0CAA0C,EAAE,OAAO,CAAC,CAAA;AACjG,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAA"}
@@ -30,7 +30,7 @@ import * as pulumi from "@pulumi/pulumi";
30
30
  * policyDocument: ad_log_policy.apply(ad_log_policy => ad_log_policy.json),
31
31
  * policyName: "ad-log-policy",
32
32
  * });
33
- * const exampleLogService = new aws.directoryservice.LogService("example", {
33
+ * const exampleLogSubscription = new aws.directoryservice.LogSubscription("example", {
34
34
  * directoryId: exampleAwsDirectoryServiceDirectory.id,
35
35
  * logGroupName: example.name,
36
36
  * });
@@ -43,6 +43,8 @@ import * as pulumi from "@pulumi/pulumi";
43
43
  * ```sh
44
44
  * $ pulumi import aws:directoryservice/logService:LogService msad d-1234567890
45
45
  * ```
46
+ *
47
+ * @deprecated aws.directoryservice/logservice.LogService has been deprecated in favor of aws.directoryservice/logsubscription.LogSubscription
46
48
  */
47
49
  export declare class LogService extends pulumi.CustomResource {
48
50
  /**
@@ -75,6 +77,7 @@ export declare class LogService extends pulumi.CustomResource {
75
77
  * @param args The arguments to use to populate this resource's properties.
76
78
  * @param opts A bag of options that control this resource's behavior.
77
79
  */
80
+ /** @deprecated aws.directoryservice/logservice.LogService has been deprecated in favor of aws.directoryservice/logsubscription.LogSubscription */
78
81
  constructor(name: string, args: LogServiceArgs, opts?: pulumi.CustomResourceOptions);
79
82
  }
80
83
  /**
@@ -36,7 +36,7 @@ const utilities = require("../utilities");
36
36
  * policyDocument: ad_log_policy.apply(ad_log_policy => ad_log_policy.json),
37
37
  * policyName: "ad-log-policy",
38
38
  * });
39
- * const exampleLogService = new aws.directoryservice.LogService("example", {
39
+ * const exampleLogSubscription = new aws.directoryservice.LogSubscription("example", {
40
40
  * directoryId: exampleAwsDirectoryServiceDirectory.id,
41
41
  * logGroupName: example.name,
42
42
  * });
@@ -49,6 +49,8 @@ const utilities = require("../utilities");
49
49
  * ```sh
50
50
  * $ pulumi import aws:directoryservice/logService:LogService msad d-1234567890
51
51
  * ```
52
+ *
53
+ * @deprecated aws.directoryservice/logservice.LogService has been deprecated in favor of aws.directoryservice/logsubscription.LogSubscription
52
54
  */
53
55
  class LogService extends pulumi.CustomResource {
54
56
  /**
@@ -61,6 +63,7 @@ class LogService extends pulumi.CustomResource {
61
63
  * @param opts Optional settings to control the behavior of the CustomResource.
62
64
  */
63
65
  static get(name, id, state, opts) {
66
+ pulumi.log.warn("LogService is deprecated: aws.directoryservice/logservice.LogService has been deprecated in favor of aws.directoryservice/logsubscription.LogSubscription");
64
67
  return new LogService(name, state, Object.assign(Object.assign({}, opts), { id: id }));
65
68
  }
66
69
  /**
@@ -73,7 +76,9 @@ class LogService extends pulumi.CustomResource {
73
76
  }
74
77
  return obj['__pulumiType'] === LogService.__pulumiType;
75
78
  }
79
+ /** @deprecated aws.directoryservice/logservice.LogService has been deprecated in favor of aws.directoryservice/logsubscription.LogSubscription */
76
80
  constructor(name, argsOrState, opts) {
81
+ pulumi.log.warn("LogService is deprecated: aws.directoryservice/logservice.LogService has been deprecated in favor of aws.directoryservice/logsubscription.LogSubscription");
77
82
  let resourceInputs = {};
78
83
  opts = opts || {};
79
84
  if (opts.id) {
@@ -1 +1 @@
1
- {"version":3,"file":"logService.js","sourceRoot":"","sources":["../../directoryservice/logService.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,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CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AArEL,gCAsEC;AAvDG,gBAAgB;AACO,uBAAY,GAAG,4CAA4C,CAAC"}
@@ -0,0 +1,105 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a Log subscription for AWS Directory Service that pushes logs to cloudwatch.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as aws from "@pulumi/aws";
10
+ *
11
+ * const example = new aws.cloudwatch.LogGroup("example", {
12
+ * name: `/aws/directoryservice/${exampleAwsDirectoryServiceDirectory.id}`,
13
+ * retentionInDays: 14,
14
+ * });
15
+ * const ad_log_policy = aws.iam.getPolicyDocumentOutput({
16
+ * statements: [{
17
+ * actions: [
18
+ * "logs:CreateLogStream",
19
+ * "logs:PutLogEvents",
20
+ * ],
21
+ * principals: [{
22
+ * identifiers: ["ds.amazonaws.com"],
23
+ * type: "Service",
24
+ * }],
25
+ * resources: [pulumi.interpolate`${example.arn}:*`],
26
+ * effect: "Allow",
27
+ * }],
28
+ * });
29
+ * const ad_log_policyLogResourcePolicy = new aws.cloudwatch.LogResourcePolicy("ad-log-policy", {
30
+ * policyDocument: ad_log_policy.apply(ad_log_policy => ad_log_policy.json),
31
+ * policyName: "ad-log-policy",
32
+ * });
33
+ * const exampleLogSubscription = new aws.directoryservice.LogSubscription("example", {
34
+ * directoryId: exampleAwsDirectoryServiceDirectory.id,
35
+ * logGroupName: example.name,
36
+ * });
37
+ * ```
38
+ *
39
+ * ## Import
40
+ *
41
+ * Using `pulumi import`, import Directory Service Log Subscriptions using the directory id. For example:
42
+ *
43
+ * ```sh
44
+ * $ pulumi import aws:directoryservice/logSubscription:LogSubscription msad d-1234567890
45
+ * ```
46
+ */
47
+ export declare class LogSubscription extends pulumi.CustomResource {
48
+ /**
49
+ * Get an existing LogSubscription resource's state with the given name, ID, and optional extra
50
+ * properties used to qualify the lookup.
51
+ *
52
+ * @param name The _unique_ name of the resulting resource.
53
+ * @param id The _unique_ provider ID of the resource to lookup.
54
+ * @param state Any extra arguments used during the lookup.
55
+ * @param opts Optional settings to control the behavior of the CustomResource.
56
+ */
57
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LogSubscriptionState, opts?: pulumi.CustomResourceOptions): LogSubscription;
58
+ /**
59
+ * Returns true if the given object is an instance of LogSubscription. This is designed to work even
60
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
+ */
62
+ static isInstance(obj: any): obj is LogSubscription;
63
+ /**
64
+ * ID of directory.
65
+ */
66
+ readonly directoryId: pulumi.Output<string>;
67
+ /**
68
+ * Name of the cloudwatch log group to which the logs should be published. The log group should be already created and the directory service principal should be provided with required permission to create stream and publish logs. Changing this value would delete the current subscription and create a new one. A directory can only have one log subscription at a time.
69
+ */
70
+ readonly logGroupName: pulumi.Output<string>;
71
+ /**
72
+ * Create a LogSubscription resource with the given unique name, arguments, and options.
73
+ *
74
+ * @param name The _unique_ name of the resource.
75
+ * @param args The arguments to use to populate this resource's properties.
76
+ * @param opts A bag of options that control this resource's behavior.
77
+ */
78
+ constructor(name: string, args: LogSubscriptionArgs, opts?: pulumi.CustomResourceOptions);
79
+ }
80
+ /**
81
+ * Input properties used for looking up and filtering LogSubscription resources.
82
+ */
83
+ export interface LogSubscriptionState {
84
+ /**
85
+ * ID of directory.
86
+ */
87
+ directoryId?: pulumi.Input<string>;
88
+ /**
89
+ * Name of the cloudwatch log group to which the logs should be published. The log group should be already created and the directory service principal should be provided with required permission to create stream and publish logs. Changing this value would delete the current subscription and create a new one. A directory can only have one log subscription at a time.
90
+ */
91
+ logGroupName?: pulumi.Input<string>;
92
+ }
93
+ /**
94
+ * The set of arguments for constructing a LogSubscription resource.
95
+ */
96
+ export interface LogSubscriptionArgs {
97
+ /**
98
+ * ID of directory.
99
+ */
100
+ directoryId: pulumi.Input<string>;
101
+ /**
102
+ * Name of the cloudwatch log group to which the logs should be published. The log group should be already created and the directory service principal should be provided with required permission to create stream and publish logs. Changing this value would delete the current subscription and create a new one. A directory can only have one log subscription at a time.
103
+ */
104
+ logGroupName: pulumi.Input<string>;
105
+ }
@@ -0,0 +1,104 @@
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.LogSubscription = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a Log subscription for AWS Directory Service that pushes logs to cloudwatch.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as aws from "@pulumi/aws";
16
+ *
17
+ * const example = new aws.cloudwatch.LogGroup("example", {
18
+ * name: `/aws/directoryservice/${exampleAwsDirectoryServiceDirectory.id}`,
19
+ * retentionInDays: 14,
20
+ * });
21
+ * const ad_log_policy = aws.iam.getPolicyDocumentOutput({
22
+ * statements: [{
23
+ * actions: [
24
+ * "logs:CreateLogStream",
25
+ * "logs:PutLogEvents",
26
+ * ],
27
+ * principals: [{
28
+ * identifiers: ["ds.amazonaws.com"],
29
+ * type: "Service",
30
+ * }],
31
+ * resources: [pulumi.interpolate`${example.arn}:*`],
32
+ * effect: "Allow",
33
+ * }],
34
+ * });
35
+ * const ad_log_policyLogResourcePolicy = new aws.cloudwatch.LogResourcePolicy("ad-log-policy", {
36
+ * policyDocument: ad_log_policy.apply(ad_log_policy => ad_log_policy.json),
37
+ * policyName: "ad-log-policy",
38
+ * });
39
+ * const exampleLogSubscription = new aws.directoryservice.LogSubscription("example", {
40
+ * directoryId: exampleAwsDirectoryServiceDirectory.id,
41
+ * logGroupName: example.name,
42
+ * });
43
+ * ```
44
+ *
45
+ * ## Import
46
+ *
47
+ * Using `pulumi import`, import Directory Service Log Subscriptions using the directory id. For example:
48
+ *
49
+ * ```sh
50
+ * $ pulumi import aws:directoryservice/logSubscription:LogSubscription msad d-1234567890
51
+ * ```
52
+ */
53
+ class LogSubscription extends pulumi.CustomResource {
54
+ /**
55
+ * Get an existing LogSubscription 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 state Any extra arguments used during the lookup.
61
+ * @param opts Optional settings to control the behavior of the CustomResource.
62
+ */
63
+ static get(name, id, state, opts) {
64
+ return new LogSubscription(name, state, Object.assign(Object.assign({}, opts), { id: id }));
65
+ }
66
+ /**
67
+ * Returns true if the given object is an instance of LogSubscription. This is designed to work even
68
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
69
+ */
70
+ static isInstance(obj) {
71
+ if (obj === undefined || obj === null) {
72
+ return false;
73
+ }
74
+ return obj['__pulumiType'] === LogSubscription.__pulumiType;
75
+ }
76
+ constructor(name, argsOrState, opts) {
77
+ let resourceInputs = {};
78
+ opts = opts || {};
79
+ if (opts.id) {
80
+ const state = argsOrState;
81
+ resourceInputs["directoryId"] = state ? state.directoryId : undefined;
82
+ resourceInputs["logGroupName"] = state ? state.logGroupName : undefined;
83
+ }
84
+ else {
85
+ const args = argsOrState;
86
+ if ((!args || args.directoryId === undefined) && !opts.urn) {
87
+ throw new Error("Missing required property 'directoryId'");
88
+ }
89
+ if ((!args || args.logGroupName === undefined) && !opts.urn) {
90
+ throw new Error("Missing required property 'logGroupName'");
91
+ }
92
+ resourceInputs["directoryId"] = args ? args.directoryId : undefined;
93
+ resourceInputs["logGroupName"] = args ? args.logGroupName : undefined;
94
+ }
95
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
96
+ const aliasOpts = { aliases: [{ type: "aws:directoryservice/logService:LogService" }] };
97
+ opts = pulumi.mergeOptions(opts, aliasOpts);
98
+ super(LogSubscription.__pulumiType, name, resourceInputs, opts);
99
+ }
100
+ }
101
+ exports.LogSubscription = LogSubscription;
102
+ /** @internal */
103
+ LogSubscription.__pulumiType = 'aws:directoryservice/logSubscription:LogSubscription';
104
+ //# sourceMappingURL=logSubscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logSubscription.js","sourceRoot":"","sources":["../../directoryservice/logSubscription.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,E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CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,4CAA4C,EAAE,CAAC,EAAE,CAAC;QACxF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAnEL,0CAoEC;AAtDG,gBAAgB;AACO,4BAAY,GAAG,sDAAsD,CAAC"}
package/ec2/ami.d.ts CHANGED
@@ -58,7 +58,7 @@ export declare class Ami extends pulumi.CustomResource {
58
58
  */
59
59
  static isInstance(obj: any): obj is Ami;
60
60
  /**
61
- * Machine architecture for created instances. Defaults to "x8664".
61
+ * Machine architecture for created instances. Defaults to `x8664`.
62
62
  */
63
63
  readonly architecture: pulumi.Output<string | undefined>;
64
64
  /**
@@ -109,6 +109,10 @@ export declare class Ami extends pulumi.CustomResource {
109
109
  */
110
110
  readonly imdsSupport: pulumi.Output<string | undefined>;
111
111
  readonly kernelId: pulumi.Output<string | undefined>;
112
+ /**
113
+ * Date and time, in ISO 8601 date-time format , when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported. For more information, see the following [AWS document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-last-launched-time.html).
114
+ */
115
+ readonly lastLaunchedTime: pulumi.Output<string>;
112
116
  readonly manageEbsSnapshots: pulumi.Output<boolean>;
113
117
  /**
114
118
  * Region-unique name for the AMI.
@@ -186,7 +190,7 @@ export declare class Ami extends pulumi.CustomResource {
186
190
  */
187
191
  export interface AmiState {
188
192
  /**
189
- * Machine architecture for created instances. Defaults to "x8664".
193
+ * Machine architecture for created instances. Defaults to `x8664`.
190
194
  */
191
195
  architecture?: pulumi.Input<string>;
192
196
  /**
@@ -237,6 +241,10 @@ export interface AmiState {
237
241
  */
238
242
  imdsSupport?: pulumi.Input<string>;
239
243
  kernelId?: pulumi.Input<string>;
244
+ /**
245
+ * Date and time, in ISO 8601 date-time format , when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported. For more information, see the following [AWS document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-last-launched-time.html).
246
+ */
247
+ lastLaunchedTime?: pulumi.Input<string>;
240
248
  manageEbsSnapshots?: pulumi.Input<boolean>;
241
249
  /**
242
250
  * Region-unique name for the AMI.
@@ -306,7 +314,7 @@ export interface AmiState {
306
314
  */
307
315
  export interface AmiArgs {
308
316
  /**
309
- * Machine architecture for created instances. Defaults to "x8664".
317
+ * Machine architecture for created instances. Defaults to `x8664`.
310
318
  */
311
319
  architecture?: pulumi.Input<string>;
312
320
  /**
package/ec2/ami.js CHANGED
@@ -87,6 +87,7 @@ class Ami extends pulumi.CustomResource {
87
87
  resourceInputs["imageType"] = state ? state.imageType : undefined;
88
88
  resourceInputs["imdsSupport"] = state ? state.imdsSupport : undefined;
89
89
  resourceInputs["kernelId"] = state ? state.kernelId : undefined;
90
+ resourceInputs["lastLaunchedTime"] = state ? state.lastLaunchedTime : undefined;
90
91
  resourceInputs["manageEbsSnapshots"] = state ? state.manageEbsSnapshots : undefined;
91
92
  resourceInputs["name"] = state ? state.name : undefined;
92
93
  resourceInputs["ownerId"] = state ? state.ownerId : undefined;
@@ -128,6 +129,7 @@ class Ami extends pulumi.CustomResource {
128
129
  resourceInputs["hypervisor"] = undefined /*out*/;
129
130
  resourceInputs["imageOwnerAlias"] = undefined /*out*/;
130
131
  resourceInputs["imageType"] = undefined /*out*/;
132
+ resourceInputs["lastLaunchedTime"] = undefined /*out*/;
131
133
  resourceInputs["manageEbsSnapshots"] = undefined /*out*/;
132
134
  resourceInputs["ownerId"] = undefined /*out*/;
133
135
  resourceInputs["platform"] = undefined /*out*/;
package/ec2/ami.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ami.js","sourceRoot":"","sources":["../../ec2/ami.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAC1C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgB,EAAE,IAAmC;QAC9G,OAAO,IAAI,GAAG,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1D,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,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;IA0HD,YAAY,IAAY,EAAE,WAAgC,EAAE,IAAmC;QAC3F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmC,CAAC;YAClD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC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AAC,SAAS,CAAC;YAClF,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACxD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AAhOL,kBAiOC;AAnNG,gBAAgB;AACO,gBAAY,GAAG,iBAAiB,CAAC"}
package/ec2/amiCopy.d.ts CHANGED
@@ -47,7 +47,7 @@ export declare class AmiCopy extends pulumi.CustomResource {
47
47
  */
48
48
  static isInstance(obj: any): obj is AmiCopy;
49
49
  /**
50
- * Machine architecture for created instances. Defaults to "x8664".
50
+ * Machine architecture for created instances. Defaults to `x8664`.
51
51
  */
52
52
  readonly architecture: pulumi.Output<string>;
53
53
  /**
@@ -110,6 +110,10 @@ export declare class AmiCopy extends pulumi.CustomResource {
110
110
  * Full ARN of the KMS Key to use when encrypting the snapshots of an image during a copy operation. If not specified, then the default AWS KMS Key will be used
111
111
  */
112
112
  readonly kmsKeyId: pulumi.Output<string>;
113
+ /**
114
+ * Date and time, in ISO 8601 date-time format , when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported. For more information, see the following [AWS document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-last-launched-time.html).
115
+ */
116
+ readonly lastLaunchedTime: pulumi.Output<string>;
113
117
  readonly manageEbsSnapshots: pulumi.Output<boolean>;
114
118
  /**
115
119
  * Region-unique name for the AMI.
@@ -185,7 +189,7 @@ export declare class AmiCopy extends pulumi.CustomResource {
185
189
  */
186
190
  export interface AmiCopyState {
187
191
  /**
188
- * Machine architecture for created instances. Defaults to "x8664".
192
+ * Machine architecture for created instances. Defaults to `x8664`.
189
193
  */
190
194
  architecture?: pulumi.Input<string>;
191
195
  /**
@@ -248,6 +252,10 @@ export interface AmiCopyState {
248
252
  * Full ARN of the KMS Key to use when encrypting the snapshots of an image during a copy operation. If not specified, then the default AWS KMS Key will be used
249
253
  */
250
254
  kmsKeyId?: pulumi.Input<string>;
255
+ /**
256
+ * Date and time, in ISO 8601 date-time format , when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported. For more information, see the following [AWS document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-last-launched-time.html).
257
+ */
258
+ lastLaunchedTime?: pulumi.Input<string>;
251
259
  manageEbsSnapshots?: pulumi.Input<boolean>;
252
260
  /**
253
261
  * Region-unique name for the AMI.
package/ec2/amiCopy.js CHANGED
@@ -79,6 +79,7 @@ class AmiCopy extends pulumi.CustomResource {
79
79
  resourceInputs["imdsSupport"] = state ? state.imdsSupport : undefined;
80
80
  resourceInputs["kernelId"] = state ? state.kernelId : undefined;
81
81
  resourceInputs["kmsKeyId"] = state ? state.kmsKeyId : undefined;
82
+ resourceInputs["lastLaunchedTime"] = state ? state.lastLaunchedTime : undefined;
82
83
  resourceInputs["manageEbsSnapshots"] = state ? state.manageEbsSnapshots : undefined;
83
84
  resourceInputs["name"] = state ? state.name : undefined;
84
85
  resourceInputs["ownerId"] = state ? state.ownerId : undefined;
@@ -127,6 +128,7 @@ class AmiCopy extends pulumi.CustomResource {
127
128
  resourceInputs["imageType"] = undefined /*out*/;
128
129
  resourceInputs["imdsSupport"] = undefined /*out*/;
129
130
  resourceInputs["kernelId"] = undefined /*out*/;
131
+ resourceInputs["lastLaunchedTime"] = undefined /*out*/;
130
132
  resourceInputs["manageEbsSnapshots"] = undefined /*out*/;
131
133
  resourceInputs["ownerId"] = undefined /*out*/;
132
134
  resourceInputs["platform"] = undefined /*out*/;