@pulumi/aws 4.19.0 → 4.21.0-alpha.1632135622

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 (86) hide show
  1. package/apprunner/service.d.ts +1 -1
  2. package/apprunner/service.js +1 -1
  3. package/autoscaling/group.d.ts +6 -6
  4. package/cfg/deliveryChannel.d.ts +12 -0
  5. package/cfg/deliveryChannel.js +2 -0
  6. package/cfg/deliveryChannel.js.map +1 -1
  7. package/chime/index.d.ts +3 -0
  8. package/chime/index.js +15 -0
  9. package/chime/index.js.map +1 -1
  10. package/chime/voiceConnectorLogging.d.ts +84 -0
  11. package/chime/voiceConnectorLogging.js +80 -0
  12. package/chime/voiceConnectorLogging.js.map +1 -0
  13. package/chime/voiceConnectorOrganization.d.ts +113 -0
  14. package/chime/voiceConnectorOrganization.js +101 -0
  15. package/chime/voiceConnectorOrganization.js.map +1 -0
  16. package/chime/voiceConnectorTermination.d.ts +138 -0
  17. package/chime/voiceConnectorTermination.js +100 -0
  18. package/chime/voiceConnectorTermination.js.map +1 -0
  19. package/cloudfront/keyGroup.d.ts +8 -0
  20. package/cloudfront/keyGroup.js +8 -0
  21. package/cloudfront/keyGroup.js.map +1 -1
  22. package/cloudtrail/trail.d.ts +147 -10
  23. package/cloudtrail/trail.js +131 -4
  24. package/cloudtrail/trail.js.map +1 -1
  25. package/dms/replicationInstance.d.ts +8 -0
  26. package/dms/replicationInstance.js +8 -0
  27. package/dms/replicationInstance.js.map +1 -1
  28. package/ec2clientvpn/endpoint.d.ts +12 -0
  29. package/ec2clientvpn/endpoint.js +2 -0
  30. package/ec2clientvpn/endpoint.js.map +1 -1
  31. package/efs/fileSystemPolicy.d.ts +13 -0
  32. package/efs/fileSystemPolicy.js +3 -0
  33. package/efs/fileSystemPolicy.js.map +1 -1
  34. package/eks/getClusters.d.ts +18 -0
  35. package/eks/getClusters.js +21 -0
  36. package/eks/getClusters.js.map +1 -0
  37. package/eks/getNodeGroup.d.ts +108 -0
  38. package/eks/getNodeGroup.js +37 -0
  39. package/eks/getNodeGroup.js.map +1 -0
  40. package/eks/getNodeGroups.d.ts +43 -0
  41. package/eks/getNodeGroups.js +38 -0
  42. package/eks/getNodeGroups.js.map +1 -0
  43. package/eks/index.d.ts +3 -0
  44. package/eks/index.js +3 -0
  45. package/eks/index.js.map +1 -1
  46. package/iam/role.d.ts +1 -1
  47. package/imagebuilder/infrastructureConfiguration.d.ts +1 -1
  48. package/imagebuilder/infrastructureConfiguration.js +1 -1
  49. package/lambda/function.d.ts +4 -1
  50. package/lambda/function.js +4 -1
  51. package/lambda/function.js.map +1 -1
  52. package/lambda/permission.d.ts +2 -2
  53. package/lambda/permission.js +2 -2
  54. package/networkfirewall/ruleGroup.d.ts +50 -0
  55. package/networkfirewall/ruleGroup.js +50 -0
  56. package/networkfirewall/ruleGroup.js.map +1 -1
  57. package/package.json +2 -2
  58. package/package.json.dev +1 -1
  59. package/quicksight/groupMembership.d.ts +109 -0
  60. package/quicksight/groupMembership.js +88 -0
  61. package/quicksight/groupMembership.js.map +1 -0
  62. package/quicksight/index.d.ts +1 -0
  63. package/quicksight/index.js +5 -0
  64. package/quicksight/index.js.map +1 -1
  65. package/rds/optionGroup.d.ts +10 -2
  66. package/rds/optionGroup.js +10 -2
  67. package/rds/optionGroup.js.map +1 -1
  68. package/rds/snapshot.d.ts +4 -4
  69. package/sagemaker/endpointConfiguration.d.ts +12 -0
  70. package/sagemaker/endpointConfiguration.js +2 -0
  71. package/sagemaker/endpointConfiguration.js.map +1 -1
  72. package/storagegateway/smbFileShare.d.ts +3 -3
  73. package/transfer/access.d.ts +167 -0
  74. package/transfer/access.js +114 -0
  75. package/transfer/access.js.map +1 -0
  76. package/transfer/index.d.ts +1 -0
  77. package/transfer/index.js +5 -0
  78. package/transfer/index.js.map +1 -1
  79. package/transfer/server.d.ts +12 -0
  80. package/transfer/server.js +2 -0
  81. package/transfer/server.js.map +1 -1
  82. package/types/input.d.ts +145 -7
  83. package/types/output.d.ts +185 -7
  84. package/waf/webAcl.d.ts +2 -0
  85. package/waf/webAcl.js +2 -0
  86. package/waf/webAcl.js.map +1 -1
@@ -21,7 +21,7 @@ import { input as inputs, output as outputs } from "../types";
21
21
  * codeConfigurationValues: {
22
22
  * buildCommand: "python setup.py develop",
23
23
  * port: "8000",
24
- * runtime: "python3",
24
+ * runtime: "PYTHON_3",
25
25
  * startCommand: "python runapp.py",
26
26
  * },
27
27
  * configurationSource: "API",
@@ -26,7 +26,7 @@ const utilities = require("../utilities");
26
26
  * codeConfigurationValues: {
27
27
  * buildCommand: "python setup.py develop",
28
28
  * port: "8000",
29
- * runtime: "python3",
29
+ * runtime: "PYTHON_3",
30
30
  * startCommand: "python runapp.py",
31
31
  * },
32
32
  * configurationSource: "API",
@@ -384,7 +384,7 @@ export declare class Group extends pulumi.CustomResource {
384
384
  */
385
385
  readonly loadBalancers: pulumi.Output<string[] | undefined>;
386
386
  /**
387
- * The maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 604800 and 31536000 seconds.
387
+ * The maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 86400 and 31536000 seconds.
388
388
  */
389
389
  readonly maxInstanceLifetime: pulumi.Output<number | undefined>;
390
390
  /**
@@ -407,7 +407,7 @@ export declare class Group extends pulumi.CustomResource {
407
407
  */
408
408
  readonly minSize: pulumi.Output<number>;
409
409
  /**
410
- * Configuration block containing settings to define launch targets for Auto Scaling groups. Defined below.
410
+ * Configuration block containing settings to define launch targets for Auto Scaling groups. See Mixed Instances Policy below for more details.
411
411
  */
412
412
  readonly mixedInstancesPolicy: pulumi.Output<outputs.autoscaling.GroupMixedInstancesPolicy | undefined>;
413
413
  /**
@@ -567,7 +567,7 @@ export interface GroupState {
567
567
  */
568
568
  loadBalancers?: pulumi.Input<pulumi.Input<string>[]>;
569
569
  /**
570
- * The maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 604800 and 31536000 seconds.
570
+ * The maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 86400 and 31536000 seconds.
571
571
  */
572
572
  maxInstanceLifetime?: pulumi.Input<number>;
573
573
  /**
@@ -590,7 +590,7 @@ export interface GroupState {
590
590
  */
591
591
  minSize?: pulumi.Input<number>;
592
592
  /**
593
- * Configuration block containing settings to define launch targets for Auto Scaling groups. Defined below.
593
+ * Configuration block containing settings to define launch targets for Auto Scaling groups. See Mixed Instances Policy below for more details.
594
594
  */
595
595
  mixedInstancesPolicy?: pulumi.Input<inputs.autoscaling.GroupMixedInstancesPolicy>;
596
596
  /**
@@ -738,7 +738,7 @@ export interface GroupArgs {
738
738
  */
739
739
  loadBalancers?: pulumi.Input<pulumi.Input<string>[]>;
740
740
  /**
741
- * The maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 604800 and 31536000 seconds.
741
+ * The maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 86400 and 31536000 seconds.
742
742
  */
743
743
  maxInstanceLifetime?: pulumi.Input<number>;
744
744
  /**
@@ -761,7 +761,7 @@ export interface GroupArgs {
761
761
  */
762
762
  minSize: pulumi.Input<number>;
763
763
  /**
764
- * Configuration block containing settings to define launch targets for Auto Scaling groups. Defined below.
764
+ * Configuration block containing settings to define launch targets for Auto Scaling groups. See Mixed Instances Policy below for more details.
765
765
  */
766
766
  mixedInstancesPolicy?: pulumi.Input<inputs.autoscaling.GroupMixedInstancesPolicy>;
767
767
  /**
@@ -87,6 +87,10 @@ export declare class DeliveryChannel extends pulumi.CustomResource {
87
87
  * The prefix for the specified S3 bucket.
88
88
  */
89
89
  readonly s3KeyPrefix: pulumi.Output<string | undefined>;
90
+ /**
91
+ * The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
92
+ */
93
+ readonly s3KmsKeyArn: pulumi.Output<string | undefined>;
90
94
  /**
91
95
  * Options for how AWS Config delivers configuration snapshots. See below
92
96
  */
@@ -120,6 +124,10 @@ export interface DeliveryChannelState {
120
124
  * The prefix for the specified S3 bucket.
121
125
  */
122
126
  s3KeyPrefix?: pulumi.Input<string>;
127
+ /**
128
+ * The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
129
+ */
130
+ s3KmsKeyArn?: pulumi.Input<string>;
123
131
  /**
124
132
  * Options for how AWS Config delivers configuration snapshots. See below
125
133
  */
@@ -145,6 +153,10 @@ export interface DeliveryChannelArgs {
145
153
  * The prefix for the specified S3 bucket.
146
154
  */
147
155
  s3KeyPrefix?: pulumi.Input<string>;
156
+ /**
157
+ * The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
158
+ */
159
+ s3KmsKeyArn?: pulumi.Input<string>;
148
160
  /**
149
161
  * Options for how AWS Config delivers configuration snapshots. See below
150
162
  */
@@ -73,6 +73,7 @@ class DeliveryChannel extends pulumi.CustomResource {
73
73
  inputs["name"] = state ? state.name : undefined;
74
74
  inputs["s3BucketName"] = state ? state.s3BucketName : undefined;
75
75
  inputs["s3KeyPrefix"] = state ? state.s3KeyPrefix : undefined;
76
+ inputs["s3KmsKeyArn"] = state ? state.s3KmsKeyArn : undefined;
76
77
  inputs["snapshotDeliveryProperties"] = state ? state.snapshotDeliveryProperties : undefined;
77
78
  inputs["snsTopicArn"] = state ? state.snsTopicArn : undefined;
78
79
  }
@@ -84,6 +85,7 @@ class DeliveryChannel extends pulumi.CustomResource {
84
85
  inputs["name"] = args ? args.name : undefined;
85
86
  inputs["s3BucketName"] = args ? args.s3BucketName : undefined;
86
87
  inputs["s3KeyPrefix"] = args ? args.s3KeyPrefix : undefined;
88
+ inputs["s3KmsKeyArn"] = args ? args.s3KmsKeyArn : undefined;
87
89
  inputs["snapshotDeliveryProperties"] = args ? args.snapshotDeliveryProperties : undefined;
88
90
  inputs["snsTopicArn"] = args ? args.snsTopicArn : undefined;
89
91
  }
@@ -1 +1 @@
1
- {"version":3,"file":"deliveryChannel.js","sourceRoot":"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AAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA1BL,0CAyFC;AA3EG,gBAAgB;AACO,4BAAY,GAAG,yCAAyC,CAAC"}
package/chime/index.d.ts CHANGED
@@ -1,2 +1,5 @@
1
1
  export * from "./voiceConnector";
2
2
  export * from "./voiceConnectorGroup";
3
+ export * from "./voiceConnectorLogging";
4
+ export * from "./voiceConnectorOrganization";
5
+ export * from "./voiceConnectorTermination";
package/chime/index.js CHANGED
@@ -17,9 +17,15 @@ const utilities = require("../utilities");
17
17
  // Export members:
18
18
  __exportStar(require("./voiceConnector"), exports);
19
19
  __exportStar(require("./voiceConnectorGroup"), exports);
20
+ __exportStar(require("./voiceConnectorLogging"), exports);
21
+ __exportStar(require("./voiceConnectorOrganization"), exports);
22
+ __exportStar(require("./voiceConnectorTermination"), exports);
20
23
  // Import resources to register:
21
24
  const voiceConnector_1 = require("./voiceConnector");
22
25
  const voiceConnectorGroup_1 = require("./voiceConnectorGroup");
26
+ const voiceConnectorLogging_1 = require("./voiceConnectorLogging");
27
+ const voiceConnectorOrganization_1 = require("./voiceConnectorOrganization");
28
+ const voiceConnectorTermination_1 = require("./voiceConnectorTermination");
23
29
  const _module = {
24
30
  version: utilities.getVersion(),
25
31
  construct: (name, type, urn) => {
@@ -28,6 +34,12 @@ const _module = {
28
34
  return new voiceConnector_1.VoiceConnector(name, undefined, { urn });
29
35
  case "aws:chime/voiceConnectorGroup:VoiceConnectorGroup":
30
36
  return new voiceConnectorGroup_1.VoiceConnectorGroup(name, undefined, { urn });
37
+ case "aws:chime/voiceConnectorLogging:VoiceConnectorLogging":
38
+ return new voiceConnectorLogging_1.VoiceConnectorLogging(name, undefined, { urn });
39
+ case "aws:chime/voiceConnectorOrganization:VoiceConnectorOrganization":
40
+ return new voiceConnectorOrganization_1.VoiceConnectorOrganization(name, undefined, { urn });
41
+ case "aws:chime/voiceConnectorTermination:VoiceConnectorTermination":
42
+ return new voiceConnectorTermination_1.VoiceConnectorTermination(name, undefined, { urn });
31
43
  default:
32
44
  throw new Error(`unknown resource type ${type}`);
33
45
  }
@@ -35,4 +47,7 @@ const _module = {
35
47
  };
36
48
  pulumi.runtime.registerResourceModule("aws", "chime/voiceConnector", _module);
37
49
  pulumi.runtime.registerResourceModule("aws", "chime/voiceConnectorGroup", _module);
50
+ pulumi.runtime.registerResourceModule("aws", "chime/voiceConnectorLogging", _module);
51
+ pulumi.runtime.registerResourceModule("aws", "chime/voiceConnectorOrganization", _module);
52
+ pulumi.runtime.registerResourceModule("aws", "chime/voiceConnectorTermination", _module);
38
53
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../chime/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,mDAAiC;AACjC,wDAAsC;AAEtC,gCAAgC;AAChC,qDAAkD;AAClD,+DAA4D;AAE5D,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,yCAAyC;gBAC1C,OAAO,IAAI,+BAAc,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC5D,KAAK,mDAAmD;gBACpD,OAAO,IAAI,yCAAmB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACjE;gBACI,MAAM,I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,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACvE;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AAClF,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"}
@@ -0,0 +1,84 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Adds a logging configuration for the specified Amazon Chime Voice Connector. The logging configuration specifies whether SIP message logs are enabled for sending to Amazon CloudWatch Logs.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as aws from "@pulumi/aws";
10
+ *
11
+ * const defaultVoiceConnector = new aws.chime.VoiceConnector("defaultVoiceConnector", {requireEncryption: true});
12
+ * const defaultVoiceConnectorLogging = new aws.chime.VoiceConnectorLogging("defaultVoiceConnectorLogging", {
13
+ * enableSipLogs: true,
14
+ * voiceConnectorId: defaultVoiceConnector.id,
15
+ * });
16
+ * ```
17
+ *
18
+ * ## Import
19
+ *
20
+ * Chime Voice Connector Logging can be imported using the `voice_connector_id`, e.g.
21
+ *
22
+ * ```sh
23
+ * $ pulumi import aws:chime/voiceConnectorLogging:VoiceConnectorLogging default abcdef1ghij2klmno3pqr4
24
+ * ```
25
+ */
26
+ export declare class VoiceConnectorLogging extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing VoiceConnectorLogging resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VoiceConnectorLoggingState, opts?: pulumi.CustomResourceOptions): VoiceConnectorLogging;
37
+ /**
38
+ * Returns true if the given object is an instance of VoiceConnectorLogging. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj: any): obj is VoiceConnectorLogging;
42
+ /**
43
+ * When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
44
+ */
45
+ readonly enableSipLogs: pulumi.Output<boolean | undefined>;
46
+ /**
47
+ * The Amazon Chime Voice Connector ID.
48
+ */
49
+ readonly voiceConnectorId: pulumi.Output<string>;
50
+ /**
51
+ * Create a VoiceConnectorLogging resource with the given unique name, arguments, and options.
52
+ *
53
+ * @param name The _unique_ name of the resource.
54
+ * @param args The arguments to use to populate this resource's properties.
55
+ * @param opts A bag of options that control this resource's behavior.
56
+ */
57
+ constructor(name: string, args: VoiceConnectorLoggingArgs, opts?: pulumi.CustomResourceOptions);
58
+ }
59
+ /**
60
+ * Input properties used for looking up and filtering VoiceConnectorLogging resources.
61
+ */
62
+ export interface VoiceConnectorLoggingState {
63
+ /**
64
+ * When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
65
+ */
66
+ enableSipLogs?: pulumi.Input<boolean>;
67
+ /**
68
+ * The Amazon Chime Voice Connector ID.
69
+ */
70
+ voiceConnectorId?: pulumi.Input<string>;
71
+ }
72
+ /**
73
+ * The set of arguments for constructing a VoiceConnectorLogging resource.
74
+ */
75
+ export interface VoiceConnectorLoggingArgs {
76
+ /**
77
+ * When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
78
+ */
79
+ enableSipLogs?: pulumi.Input<boolean>;
80
+ /**
81
+ * The Amazon Chime Voice Connector ID.
82
+ */
83
+ voiceConnectorId: pulumi.Input<string>;
84
+ }
@@ -0,0 +1,80 @@
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.VoiceConnectorLogging = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Adds a logging configuration for the specified Amazon Chime Voice Connector. The logging configuration specifies whether SIP message logs are enabled for sending to Amazon CloudWatch Logs.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as aws from "@pulumi/aws";
16
+ *
17
+ * const defaultVoiceConnector = new aws.chime.VoiceConnector("defaultVoiceConnector", {requireEncryption: true});
18
+ * const defaultVoiceConnectorLogging = new aws.chime.VoiceConnectorLogging("defaultVoiceConnectorLogging", {
19
+ * enableSipLogs: true,
20
+ * voiceConnectorId: defaultVoiceConnector.id,
21
+ * });
22
+ * ```
23
+ *
24
+ * ## Import
25
+ *
26
+ * Chime Voice Connector Logging can be imported using the `voice_connector_id`, e.g.
27
+ *
28
+ * ```sh
29
+ * $ pulumi import aws:chime/voiceConnectorLogging:VoiceConnectorLogging default abcdef1ghij2klmno3pqr4
30
+ * ```
31
+ */
32
+ class VoiceConnectorLogging extends pulumi.CustomResource {
33
+ constructor(name, argsOrState, opts) {
34
+ let inputs = {};
35
+ opts = opts || {};
36
+ if (opts.id) {
37
+ const state = argsOrState;
38
+ inputs["enableSipLogs"] = state ? state.enableSipLogs : undefined;
39
+ inputs["voiceConnectorId"] = state ? state.voiceConnectorId : undefined;
40
+ }
41
+ else {
42
+ const args = argsOrState;
43
+ if ((!args || args.voiceConnectorId === undefined) && !opts.urn) {
44
+ throw new Error("Missing required property 'voiceConnectorId'");
45
+ }
46
+ inputs["enableSipLogs"] = args ? args.enableSipLogs : undefined;
47
+ inputs["voiceConnectorId"] = args ? args.voiceConnectorId : undefined;
48
+ }
49
+ if (!opts.version) {
50
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
51
+ }
52
+ super(VoiceConnectorLogging.__pulumiType, name, inputs, opts);
53
+ }
54
+ /**
55
+ * Get an existing VoiceConnectorLogging 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 VoiceConnectorLogging(name, state, Object.assign(Object.assign({}, opts), { id: id }));
65
+ }
66
+ /**
67
+ * Returns true if the given object is an instance of VoiceConnectorLogging. 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'] === VoiceConnectorLogging.__pulumiType;
75
+ }
76
+ }
77
+ exports.VoiceConnectorLogging = VoiceConnectorLogging;
78
+ /** @internal */
79
+ VoiceConnectorLogging.__pulumiType = 'aws:chime/voiceConnectorLogging:VoiceConnectorLogging';
80
+ //# sourceMappingURL=voiceConnectorLogging.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voiceConnectorLogging.js","sourceRoot":"","sources":["../../chime/voiceConnectorLogging.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IA6C5D,YAAY,IAAY,EAAE,WA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AAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5E,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,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;;AA1BL,sDAiEC;AAnDG,gBAAgB;AACO,kCAAY,GAAG,uDAAuD,CAAC"}
@@ -0,0 +1,113 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * Enable origination settings to control inbound calling to your SIP infrastructure.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as aws from "@pulumi/aws";
11
+ *
12
+ * const defaultVoiceConnector = new aws.chime.VoiceConnector("defaultVoiceConnector", {requireEncryption: true});
13
+ * const defaultVoiceConnectorOrganization = new aws.chime.VoiceConnectorOrganization("defaultVoiceConnectorOrganization", {
14
+ * disabled: false,
15
+ * voiceConnectorId: defaultVoiceConnector.id,
16
+ * routes: [
17
+ * {
18
+ * host: "127.0.0.1",
19
+ * port: 8081,
20
+ * protocol: "TCP",
21
+ * priority: 1,
22
+ * weight: 1,
23
+ * },
24
+ * {
25
+ * host: "127.0.0.2",
26
+ * port: 8082,
27
+ * protocol: "TCP",
28
+ * priority: 2,
29
+ * weight: 10,
30
+ * },
31
+ * ],
32
+ * });
33
+ * ```
34
+ *
35
+ * ## Import
36
+ *
37
+ * Chime Voice Connector Origination can be imported using the `voice_connector_id`, e.g.
38
+ *
39
+ * ```sh
40
+ * $ pulumi import aws:chime/voiceConnectorOrganization:VoiceConnectorOrganization default abcdef1ghij2klmno3pqr4
41
+ * ```
42
+ */
43
+ export declare class VoiceConnectorOrganization extends pulumi.CustomResource {
44
+ /**
45
+ * Get an existing VoiceConnectorOrganization resource's state with the given name, ID, and optional extra
46
+ * properties used to qualify the lookup.
47
+ *
48
+ * @param name The _unique_ name of the resulting resource.
49
+ * @param id The _unique_ provider ID of the resource to lookup.
50
+ * @param state Any extra arguments used during the lookup.
51
+ * @param opts Optional settings to control the behavior of the CustomResource.
52
+ */
53
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VoiceConnectorOrganizationState, opts?: pulumi.CustomResourceOptions): VoiceConnectorOrganization;
54
+ /**
55
+ * Returns true if the given object is an instance of VoiceConnectorOrganization. This is designed to work even
56
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
57
+ */
58
+ static isInstance(obj: any): obj is VoiceConnectorOrganization;
59
+ /**
60
+ * When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
61
+ */
62
+ readonly disabled: pulumi.Output<boolean | undefined>;
63
+ /**
64
+ * Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
65
+ */
66
+ readonly routes: pulumi.Output<outputs.chime.VoiceConnectorOrganizationRoute[]>;
67
+ /**
68
+ * The Amazon Chime Voice Connector ID.
69
+ */
70
+ readonly voiceConnectorId: pulumi.Output<string>;
71
+ /**
72
+ * Create a VoiceConnectorOrganization 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: VoiceConnectorOrganizationArgs, opts?: pulumi.CustomResourceOptions);
79
+ }
80
+ /**
81
+ * Input properties used for looking up and filtering VoiceConnectorOrganization resources.
82
+ */
83
+ export interface VoiceConnectorOrganizationState {
84
+ /**
85
+ * When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
86
+ */
87
+ disabled?: pulumi.Input<boolean>;
88
+ /**
89
+ * Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
90
+ */
91
+ routes?: pulumi.Input<pulumi.Input<inputs.chime.VoiceConnectorOrganizationRoute>[]>;
92
+ /**
93
+ * The Amazon Chime Voice Connector ID.
94
+ */
95
+ voiceConnectorId?: pulumi.Input<string>;
96
+ }
97
+ /**
98
+ * The set of arguments for constructing a VoiceConnectorOrganization resource.
99
+ */
100
+ export interface VoiceConnectorOrganizationArgs {
101
+ /**
102
+ * When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
103
+ */
104
+ disabled?: pulumi.Input<boolean>;
105
+ /**
106
+ * Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
107
+ */
108
+ routes: pulumi.Input<pulumi.Input<inputs.chime.VoiceConnectorOrganizationRoute>[]>;
109
+ /**
110
+ * The Amazon Chime Voice Connector ID.
111
+ */
112
+ voiceConnectorId: pulumi.Input<string>;
113
+ }
@@ -0,0 +1,101 @@
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.VoiceConnectorOrganization = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Enable origination settings to control inbound calling to your SIP infrastructure.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as aws from "@pulumi/aws";
16
+ *
17
+ * const defaultVoiceConnector = new aws.chime.VoiceConnector("defaultVoiceConnector", {requireEncryption: true});
18
+ * const defaultVoiceConnectorOrganization = new aws.chime.VoiceConnectorOrganization("defaultVoiceConnectorOrganization", {
19
+ * disabled: false,
20
+ * voiceConnectorId: defaultVoiceConnector.id,
21
+ * routes: [
22
+ * {
23
+ * host: "127.0.0.1",
24
+ * port: 8081,
25
+ * protocol: "TCP",
26
+ * priority: 1,
27
+ * weight: 1,
28
+ * },
29
+ * {
30
+ * host: "127.0.0.2",
31
+ * port: 8082,
32
+ * protocol: "TCP",
33
+ * priority: 2,
34
+ * weight: 10,
35
+ * },
36
+ * ],
37
+ * });
38
+ * ```
39
+ *
40
+ * ## Import
41
+ *
42
+ * Chime Voice Connector Origination can be imported using the `voice_connector_id`, e.g.
43
+ *
44
+ * ```sh
45
+ * $ pulumi import aws:chime/voiceConnectorOrganization:VoiceConnectorOrganization default abcdef1ghij2klmno3pqr4
46
+ * ```
47
+ */
48
+ class VoiceConnectorOrganization extends pulumi.CustomResource {
49
+ constructor(name, argsOrState, opts) {
50
+ let inputs = {};
51
+ opts = opts || {};
52
+ if (opts.id) {
53
+ const state = argsOrState;
54
+ inputs["disabled"] = state ? state.disabled : undefined;
55
+ inputs["routes"] = state ? state.routes : undefined;
56
+ inputs["voiceConnectorId"] = state ? state.voiceConnectorId : undefined;
57
+ }
58
+ else {
59
+ const args = argsOrState;
60
+ if ((!args || args.routes === undefined) && !opts.urn) {
61
+ throw new Error("Missing required property 'routes'");
62
+ }
63
+ if ((!args || args.voiceConnectorId === undefined) && !opts.urn) {
64
+ throw new Error("Missing required property 'voiceConnectorId'");
65
+ }
66
+ inputs["disabled"] = args ? args.disabled : undefined;
67
+ inputs["routes"] = args ? args.routes : undefined;
68
+ inputs["voiceConnectorId"] = args ? args.voiceConnectorId : undefined;
69
+ }
70
+ if (!opts.version) {
71
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
72
+ }
73
+ super(VoiceConnectorOrganization.__pulumiType, name, inputs, opts);
74
+ }
75
+ /**
76
+ * Get an existing VoiceConnectorOrganization resource's state with the given name, ID, and optional extra
77
+ * properties used to qualify the lookup.
78
+ *
79
+ * @param name The _unique_ name of the resulting resource.
80
+ * @param id The _unique_ provider ID of the resource to lookup.
81
+ * @param state Any extra arguments used during the lookup.
82
+ * @param opts Optional settings to control the behavior of the CustomResource.
83
+ */
84
+ static get(name, id, state, opts) {
85
+ return new VoiceConnectorOrganization(name, state, Object.assign(Object.assign({}, opts), { id: id }));
86
+ }
87
+ /**
88
+ * Returns true if the given object is an instance of VoiceConnectorOrganization. This is designed to work even
89
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
90
+ */
91
+ static isInstance(obj) {
92
+ if (obj === undefined || obj === null) {
93
+ return false;
94
+ }
95
+ return obj['__pulumiType'] === VoiceConnectorOrganization.__pulumiType;
96
+ }
97
+ }
98
+ exports.VoiceConnectorOrganization = VoiceConnectorOrganization;
99
+ /** @internal */
100
+ VoiceConnectorOrganization.__pulumiType = 'aws:chime/voiceConnectorOrganization:VoiceConnectorOrganization';
101
+ //# sourceMappingURL=voiceConnectorOrganization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voiceConnectorOrganization.js","sourceRoot":"","sources":["../../chime/voiceConnectorOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IAiDjE,YAAY,IAAY,EAAE,WAA8E,EAAE,IAAmC;QACzI,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0D,CAAC;YACzE,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC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