@pulumi/aws 4.27.2 → 4.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/amplify/branch.d.ts +2 -2
  2. package/amplify/branch.js +2 -2
  3. package/batch/jobQueue.d.ts +3 -6
  4. package/batch/jobQueue.js.map +1 -1
  5. package/cloudfront/cachePolicy.d.ts +3 -7
  6. package/cloudfront/cachePolicy.js +4 -1
  7. package/cloudfront/cachePolicy.js.map +1 -1
  8. package/cloudfront/fieldLevelEncryptionConfig.d.ts +129 -0
  9. package/cloudfront/fieldLevelEncryptionConfig.js +105 -0
  10. package/cloudfront/fieldLevelEncryptionConfig.js.map +1 -0
  11. package/cloudfront/fieldLevelEncryptionProfile.d.ts +125 -0
  12. package/cloudfront/fieldLevelEncryptionProfile.js +98 -0
  13. package/cloudfront/fieldLevelEncryptionProfile.js.map +1 -0
  14. package/cloudfront/function.d.ts +10 -2
  15. package/cloudfront/function.js +2 -0
  16. package/cloudfront/function.js.map +1 -1
  17. package/cloudfront/index.d.ts +2 -0
  18. package/cloudfront/index.js +10 -0
  19. package/cloudfront/index.js.map +1 -1
  20. package/cloudfront/originRequestPolicy.d.ts +0 -4
  21. package/cloudfront/originRequestPolicy.js +1 -1
  22. package/cloudfront/originRequestPolicy.js.map +1 -1
  23. package/cloudwatch/eventBusPolicy.d.ts +1 -1
  24. package/cloudwatch/eventBusPolicy.js +1 -1
  25. package/cloudwatch/eventPermission.d.ts +2 -0
  26. package/cloudwatch/eventPermission.js +2 -0
  27. package/cloudwatch/eventPermission.js.map +1 -1
  28. package/cloudwatch/getEventConnection.d.ts +1 -1
  29. package/cloudwatch/getEventConnection.js +1 -1
  30. package/docdb/cluster.d.ts +12 -0
  31. package/docdb/cluster.js +2 -0
  32. package/docdb/cluster.js.map +1 -1
  33. package/docdb/globalCluster.d.ts +218 -0
  34. package/docdb/globalCluster.js +169 -0
  35. package/docdb/globalCluster.js.map +1 -0
  36. package/docdb/index.d.ts +1 -0
  37. package/docdb/index.js +5 -0
  38. package/docdb/index.js.map +1 -1
  39. package/ebs/encryptionByDefault.d.ts +8 -0
  40. package/ebs/encryptionByDefault.js +8 -0
  41. package/ebs/encryptionByDefault.js.map +1 -1
  42. package/ec2/getKeyPair.d.ts +93 -0
  43. package/ec2/getKeyPair.js +51 -0
  44. package/ec2/getKeyPair.js.map +1 -0
  45. package/ec2/index.d.ts +1 -0
  46. package/ec2/index.js +1 -0
  47. package/ec2/index.js.map +1 -1
  48. package/ec2/keyPair.d.ts +1 -1
  49. package/ec2/securityGroupRule.d.ts +1 -1
  50. package/ec2/securityGroupRule.js +1 -1
  51. package/eks/nodeGroup.d.ts +3 -3
  52. package/emr/cluster.d.ts +2 -2
  53. package/emr/cluster.js +2 -2
  54. package/lambda/function.d.ts +3 -3
  55. package/lambda/function.js +3 -3
  56. package/lambda/permission.d.ts +4 -4
  57. package/lambda/permission.js +1 -1
  58. package/package.json +2 -2
  59. package/package.json.dev +1 -1
  60. package/rds/cluster.d.ts +6 -6
  61. package/s3/bucketIntelligentTieringConfiguration.d.ts +154 -0
  62. package/s3/bucketIntelligentTieringConfiguration.js +122 -0
  63. package/s3/bucketIntelligentTieringConfiguration.js.map +1 -0
  64. package/s3/index.d.ts +1 -0
  65. package/s3/index.js +5 -0
  66. package/s3/index.js.map +1 -1
  67. package/sns/smsPreferences.d.ts +1 -1
  68. package/types/input.d.ts +278 -153
  69. package/types/output.d.ts +116 -1
@@ -38,7 +38,7 @@ import * as pulumi from "@pulumi/pulumi";
38
38
  * ```
39
39
  * ### Notifications
40
40
  *
41
- * Amplify Console uses CloudWatch Events and SNS for email notifications. To implement the same functionality, you need to set `enableNotification` in a `aws.amplify.Branch` resource, as well as creating a CloudWatch Events Rule, a SNS topic, and SNS subscriptions.
41
+ * Amplify Console uses EventBridge (formerly known as CloudWatch Events) and SNS for email notifications. To implement the same functionality, you need to set `enableNotification` in a `aws.amplify.Branch` resource, as well as creating an EventBridge Rule, an SNS topic, and SNS subscriptions.
42
42
  *
43
43
  * ```typescript
44
44
  * import * as pulumi from "@pulumi/pulumi";
@@ -50,7 +50,7 @@ import * as pulumi from "@pulumi/pulumi";
50
50
  * branchName: "master",
51
51
  * enableNotification: true,
52
52
  * });
53
- * // CloudWatch Events Rule for Amplify notifications
53
+ * // EventBridge Rule for Amplify notifications
54
54
  * const amplifyAppMasterEventRule = new aws.cloudwatch.EventRule("amplifyAppMasterEventRule", {
55
55
  * description: pulumi.interpolate`AWS Amplify build notifications for : App: ${aws_amplify_app.app.id} Branch: ${master.branchName}`,
56
56
  * eventPattern: pulumi.all([example.id, master.branchName]).apply(([id, branchName]) => JSON.stringify({
package/amplify/branch.js CHANGED
@@ -44,7 +44,7 @@ const utilities = require("../utilities");
44
44
  * ```
45
45
  * ### Notifications
46
46
  *
47
- * Amplify Console uses CloudWatch Events and SNS for email notifications. To implement the same functionality, you need to set `enableNotification` in a `aws.amplify.Branch` resource, as well as creating a CloudWatch Events Rule, a SNS topic, and SNS subscriptions.
47
+ * Amplify Console uses EventBridge (formerly known as CloudWatch Events) and SNS for email notifications. To implement the same functionality, you need to set `enableNotification` in a `aws.amplify.Branch` resource, as well as creating an EventBridge Rule, an SNS topic, and SNS subscriptions.
48
48
  *
49
49
  * ```typescript
50
50
  * import * as pulumi from "@pulumi/pulumi";
@@ -56,7 +56,7 @@ const utilities = require("../utilities");
56
56
  * branchName: "master",
57
57
  * enableNotification: true,
58
58
  * });
59
- * // CloudWatch Events Rule for Amplify notifications
59
+ * // EventBridge Rule for Amplify notifications
60
60
  * const amplifyAppMasterEventRule = new aws.cloudwatch.EventRule("amplifyAppMasterEventRule", {
61
61
  * description: pulumi.interpolate`AWS Amplify build notifications for : App: ${aws_amplify_app.app.id} Branch: ${master.branchName}`,
62
62
  * eventPattern: pulumi.all([example.id, master.branchName]).apply(([id, branchName]) => JSON.stringify({
@@ -49,8 +49,7 @@ export declare class JobQueue extends pulumi.CustomResource {
49
49
  /**
50
50
  * Specifies the set of compute environments
51
51
  * mapped to a job queue and their order. The position of the compute environments
52
- * in the list will dictate the order. You can associate up to 3 compute environments
53
- * with a job queue.
52
+ * in the list will dictate the order.
54
53
  */
55
54
  readonly computeEnvironments: pulumi.Output<string[]>;
56
55
  /**
@@ -98,8 +97,7 @@ export interface JobQueueState {
98
97
  /**
99
98
  * Specifies the set of compute environments
100
99
  * mapped to a job queue and their order. The position of the compute environments
101
- * in the list will dictate the order. You can associate up to 3 compute environments
102
- * with a job queue.
100
+ * in the list will dictate the order.
103
101
  */
104
102
  computeEnvironments?: pulumi.Input<pulumi.Input<string>[]>;
105
103
  /**
@@ -135,8 +133,7 @@ export interface JobQueueArgs {
135
133
  /**
136
134
  * Specifies the set of compute environments
137
135
  * mapped to a job queue and their order. The position of the compute environments
138
- * in the list will dictate the order. You can associate up to 3 compute environments
139
- * with a job queue.
136
+ * in the list will dictate the order.
140
137
  */
141
138
  computeEnvironments: pulumi.Input<pulumi.Input<string>[]>;
142
139
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"jobQueue.js","sourceRoot":"","sources":["../../batch/jobQueue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAqE/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,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,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACzC;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,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAtGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BAwGC;AA1FG,gBAAgB;AACO,qBAAY,GAAG,6BAA6B,CAAC"}
@@ -88,7 +88,7 @@ export declare class CachePolicy extends pulumi.CustomResource {
88
88
  /**
89
89
  * The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information.
90
90
  */
91
- readonly parametersInCacheKeyAndForwardedToOrigin: pulumi.Output<outputs.cloudfront.CachePolicyParametersInCacheKeyAndForwardedToOrigin | undefined>;
91
+ readonly parametersInCacheKeyAndForwardedToOrigin: pulumi.Output<outputs.cloudfront.CachePolicyParametersInCacheKeyAndForwardedToOrigin>;
92
92
  /**
93
93
  * Create a CachePolicy resource with the given unique name, arguments, and options.
94
94
  *
@@ -96,7 +96,7 @@ export declare class CachePolicy extends pulumi.CustomResource {
96
96
  * @param args The arguments to use to populate this resource's properties.
97
97
  * @param opts A bag of options that control this resource's behavior.
98
98
  */
99
- constructor(name: string, args?: CachePolicyArgs, opts?: pulumi.CustomResourceOptions);
99
+ constructor(name: string, args: CachePolicyArgs, opts?: pulumi.CustomResourceOptions);
100
100
  }
101
101
  /**
102
102
  * Input properties used for looking up and filtering CachePolicy resources.
@@ -143,10 +143,6 @@ export interface CachePolicyArgs {
143
143
  * The default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
144
144
  */
145
145
  defaultTtl?: pulumi.Input<number>;
146
- /**
147
- * The current version of the cache policy.
148
- */
149
- etag?: pulumi.Input<string>;
150
146
  /**
151
147
  * The maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
152
148
  */
@@ -162,5 +158,5 @@ export interface CachePolicyArgs {
162
158
  /**
163
159
  * The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information.
164
160
  */
165
- parametersInCacheKeyAndForwardedToOrigin?: pulumi.Input<inputs.cloudfront.CachePolicyParametersInCacheKeyAndForwardedToOrigin>;
161
+ parametersInCacheKeyAndForwardedToOrigin: pulumi.Input<inputs.cloudfront.CachePolicyParametersInCacheKeyAndForwardedToOrigin>;
166
162
  }
@@ -66,13 +66,16 @@ class CachePolicy extends pulumi.CustomResource {
66
66
  }
67
67
  else {
68
68
  const args = argsOrState;
69
+ if ((!args || args.parametersInCacheKeyAndForwardedToOrigin === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'parametersInCacheKeyAndForwardedToOrigin'");
71
+ }
69
72
  inputs["comment"] = args ? args.comment : undefined;
70
73
  inputs["defaultTtl"] = args ? args.defaultTtl : undefined;
71
- inputs["etag"] = args ? args.etag : undefined;
72
74
  inputs["maxTtl"] = args ? args.maxTtl : undefined;
73
75
  inputs["minTtl"] = args ? args.minTtl : undefined;
74
76
  inputs["name"] = args ? args.name : undefined;
75
77
  inputs["parametersInCacheKeyAndForwardedToOrigin"] = args ? args.parametersInCacheKeyAndForwardedToOrigin : undefined;
78
+ inputs["etag"] = undefined /*out*/;
76
79
  }
77
80
  if (!opts.version) {
78
81
  opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
@@ -1 +1 @@
1
- {"version":3,"file":"cachePolicy.js","sourceRoot":"","sources":["../../cloudfront/cachePolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAiElD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,MAAM,CAAC,GAAG,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CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,0CAA0C,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC,CAAC,SAAS,CAAC;YACtH,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtC;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,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IA7FD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCA+FC;AAjFG,gBAAgB;AACO,wBAAY,GAAG,wCAAwC,CAAC"}
@@ -0,0 +1,129 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * Provides a CloudFront Field-level Encryption Config resource.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as aws from "@pulumi/aws";
11
+ *
12
+ * const test = new aws.cloudfront.FieldLevelEncryptionConfig("test", {
13
+ * comment: "test comment",
14
+ * contentTypeProfileConfig: {
15
+ * forwardWhenContentTypeIsUnknown: true,
16
+ * contentTypeProfiles: {
17
+ * items: [{
18
+ * contentType: "application/x-www-form-urlencoded",
19
+ * format: "URLEncoded",
20
+ * }],
21
+ * },
22
+ * },
23
+ * queryArgProfileConfig: {
24
+ * forwardWhenQueryArgProfileIsUnknown: true,
25
+ * queryArgProfiles: {
26
+ * items: [{
27
+ * profileId: aws_cloudfront_field_level_encryption_profile.test.id,
28
+ * queryArg: "Arg1",
29
+ * }],
30
+ * },
31
+ * },
32
+ * });
33
+ * ```
34
+ *
35
+ * ## Import
36
+ *
37
+ * Cloudfront Field Level Encryption Config can be imported using the `id`, e.g.
38
+ *
39
+ * ```sh
40
+ * $ pulumi import aws:cloudfront/fieldLevelEncryptionConfig:FieldLevelEncryptionConfig config E74FTE3AEXAMPLE
41
+ * ```
42
+ */
43
+ export declare class FieldLevelEncryptionConfig extends pulumi.CustomResource {
44
+ /**
45
+ * Get an existing FieldLevelEncryptionConfig 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?: FieldLevelEncryptionConfigState, opts?: pulumi.CustomResourceOptions): FieldLevelEncryptionConfig;
54
+ /**
55
+ * Returns true if the given object is an instance of FieldLevelEncryptionConfig. 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 FieldLevelEncryptionConfig;
59
+ /**
60
+ * Internal value used by CloudFront to allow future updates to the Field Level Encryption Config.
61
+ */
62
+ readonly callerReference: pulumi.Output<string>;
63
+ /**
64
+ * An optional comment about the Field Level Encryption Config.
65
+ */
66
+ readonly comment: pulumi.Output<string | undefined>;
67
+ /**
68
+ * Content Type Profile Config specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use.
69
+ */
70
+ readonly contentTypeProfileConfig: pulumi.Output<outputs.cloudfront.FieldLevelEncryptionConfigContentTypeProfileConfig>;
71
+ /**
72
+ * The current version of the Field Level Encryption Config. For example: `E2QWRUHAPOMQZL`.
73
+ */
74
+ readonly etag: pulumi.Output<string>;
75
+ /**
76
+ * Query Arg Profile Config that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request.
77
+ */
78
+ readonly queryArgProfileConfig: pulumi.Output<outputs.cloudfront.FieldLevelEncryptionConfigQueryArgProfileConfig>;
79
+ /**
80
+ * Create a FieldLevelEncryptionConfig resource with the given unique name, arguments, and options.
81
+ *
82
+ * @param name The _unique_ name of the resource.
83
+ * @param args The arguments to use to populate this resource's properties.
84
+ * @param opts A bag of options that control this resource's behavior.
85
+ */
86
+ constructor(name: string, args: FieldLevelEncryptionConfigArgs, opts?: pulumi.CustomResourceOptions);
87
+ }
88
+ /**
89
+ * Input properties used for looking up and filtering FieldLevelEncryptionConfig resources.
90
+ */
91
+ export interface FieldLevelEncryptionConfigState {
92
+ /**
93
+ * Internal value used by CloudFront to allow future updates to the Field Level Encryption Config.
94
+ */
95
+ callerReference?: pulumi.Input<string>;
96
+ /**
97
+ * An optional comment about the Field Level Encryption Config.
98
+ */
99
+ comment?: pulumi.Input<string>;
100
+ /**
101
+ * Content Type Profile Config specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use.
102
+ */
103
+ contentTypeProfileConfig?: pulumi.Input<inputs.cloudfront.FieldLevelEncryptionConfigContentTypeProfileConfig>;
104
+ /**
105
+ * The current version of the Field Level Encryption Config. For example: `E2QWRUHAPOMQZL`.
106
+ */
107
+ etag?: pulumi.Input<string>;
108
+ /**
109
+ * Query Arg Profile Config that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request.
110
+ */
111
+ queryArgProfileConfig?: pulumi.Input<inputs.cloudfront.FieldLevelEncryptionConfigQueryArgProfileConfig>;
112
+ }
113
+ /**
114
+ * The set of arguments for constructing a FieldLevelEncryptionConfig resource.
115
+ */
116
+ export interface FieldLevelEncryptionConfigArgs {
117
+ /**
118
+ * An optional comment about the Field Level Encryption Config.
119
+ */
120
+ comment?: pulumi.Input<string>;
121
+ /**
122
+ * Content Type Profile Config specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use.
123
+ */
124
+ contentTypeProfileConfig: pulumi.Input<inputs.cloudfront.FieldLevelEncryptionConfigContentTypeProfileConfig>;
125
+ /**
126
+ * Query Arg Profile Config that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request.
127
+ */
128
+ queryArgProfileConfig: pulumi.Input<inputs.cloudfront.FieldLevelEncryptionConfigQueryArgProfileConfig>;
129
+ }
@@ -0,0 +1,105 @@
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.FieldLevelEncryptionConfig = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a CloudFront Field-level Encryption Config resource.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as aws from "@pulumi/aws";
16
+ *
17
+ * const test = new aws.cloudfront.FieldLevelEncryptionConfig("test", {
18
+ * comment: "test comment",
19
+ * contentTypeProfileConfig: {
20
+ * forwardWhenContentTypeIsUnknown: true,
21
+ * contentTypeProfiles: {
22
+ * items: [{
23
+ * contentType: "application/x-www-form-urlencoded",
24
+ * format: "URLEncoded",
25
+ * }],
26
+ * },
27
+ * },
28
+ * queryArgProfileConfig: {
29
+ * forwardWhenQueryArgProfileIsUnknown: true,
30
+ * queryArgProfiles: {
31
+ * items: [{
32
+ * profileId: aws_cloudfront_field_level_encryption_profile.test.id,
33
+ * queryArg: "Arg1",
34
+ * }],
35
+ * },
36
+ * },
37
+ * });
38
+ * ```
39
+ *
40
+ * ## Import
41
+ *
42
+ * Cloudfront Field Level Encryption Config can be imported using the `id`, e.g.
43
+ *
44
+ * ```sh
45
+ * $ pulumi import aws:cloudfront/fieldLevelEncryptionConfig:FieldLevelEncryptionConfig config E74FTE3AEXAMPLE
46
+ * ```
47
+ */
48
+ class FieldLevelEncryptionConfig extends pulumi.CustomResource {
49
+ constructor(name, argsOrState, opts) {
50
+ let inputs = {};
51
+ opts = opts || {};
52
+ if (opts.id) {
53
+ const state = argsOrState;
54
+ inputs["callerReference"] = state ? state.callerReference : undefined;
55
+ inputs["comment"] = state ? state.comment : undefined;
56
+ inputs["contentTypeProfileConfig"] = state ? state.contentTypeProfileConfig : undefined;
57
+ inputs["etag"] = state ? state.etag : undefined;
58
+ inputs["queryArgProfileConfig"] = state ? state.queryArgProfileConfig : undefined;
59
+ }
60
+ else {
61
+ const args = argsOrState;
62
+ if ((!args || args.contentTypeProfileConfig === undefined) && !opts.urn) {
63
+ throw new Error("Missing required property 'contentTypeProfileConfig'");
64
+ }
65
+ if ((!args || args.queryArgProfileConfig === undefined) && !opts.urn) {
66
+ throw new Error("Missing required property 'queryArgProfileConfig'");
67
+ }
68
+ inputs["comment"] = args ? args.comment : undefined;
69
+ inputs["contentTypeProfileConfig"] = args ? args.contentTypeProfileConfig : undefined;
70
+ inputs["queryArgProfileConfig"] = args ? args.queryArgProfileConfig : undefined;
71
+ inputs["callerReference"] = undefined /*out*/;
72
+ inputs["etag"] = undefined /*out*/;
73
+ }
74
+ if (!opts.version) {
75
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
76
+ }
77
+ super(FieldLevelEncryptionConfig.__pulumiType, name, inputs, opts);
78
+ }
79
+ /**
80
+ * Get an existing FieldLevelEncryptionConfig resource's state with the given name, ID, and optional extra
81
+ * properties used to qualify the lookup.
82
+ *
83
+ * @param name The _unique_ name of the resulting resource.
84
+ * @param id The _unique_ provider ID of the resource to lookup.
85
+ * @param state Any extra arguments used during the lookup.
86
+ * @param opts Optional settings to control the behavior of the CustomResource.
87
+ */
88
+ static get(name, id, state, opts) {
89
+ return new FieldLevelEncryptionConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
90
+ }
91
+ /**
92
+ * Returns true if the given object is an instance of FieldLevelEncryptionConfig. This is designed to work even
93
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
94
+ */
95
+ static isInstance(obj) {
96
+ if (obj === undefined || obj === null) {
97
+ return false;
98
+ }
99
+ return obj['__pulumiType'] === FieldLevelEncryptionConfig.__pulumiType;
100
+ }
101
+ }
102
+ exports.FieldLevelEncryptionConfig = FieldLevelEncryptionConfig;
103
+ /** @internal */
104
+ FieldLevelEncryptionConfig.__pulumiType = 'aws:cloudfront/fieldLevelEncryptionConfig:FieldLevelEncryptionConfig';
105
+ //# sourceMappingURL=fieldLevelEncryptionConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldLevelEncryptionConfig.js","sourceRoot":"","sources":["../../cloudfront/fieldLevelEncryptionConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IAyDjE,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,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC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AAO,CAAC;YAC9C,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtC;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,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;IApFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjF,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,0BAA0B,CAAC,YAAY,CAAC;IAC3E,CAAC;;AA1BL,gEAsFC;AAxEG,gBAAgB;AACO,uCAAY,GAAG,sEAAsE,CAAC"}
@@ -0,0 +1,125 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * Provides a CloudFront Field-level Encryption Profile resource.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as aws from "@pulumi/aws";
11
+ * import * from "fs";
12
+ *
13
+ * const example = new aws.cloudfront.PublicKey("example", {
14
+ * comment: "test public key",
15
+ * encodedKey: fs.readFileSync("public_key.pem"),
16
+ * });
17
+ * const test = new aws.cloudfront.FieldLevelEncryptionProfile("test", {
18
+ * comment: "test comment",
19
+ * encryptionEntities: {
20
+ * items: [{
21
+ * publicKeyId: example.id,
22
+ * providerId: "test provider",
23
+ * fieldPatterns: {
24
+ * items: ["DateOfBirth"],
25
+ * },
26
+ * }],
27
+ * },
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * Cloudfront Field Level Encryption Profile can be imported using the `id`, e.g.
34
+ *
35
+ * ```sh
36
+ * $ pulumi import aws:cloudfront/fieldLevelEncryptionProfile:FieldLevelEncryptionProfile profile K3D5EWEUDCCXON
37
+ * ```
38
+ */
39
+ export declare class FieldLevelEncryptionProfile extends pulumi.CustomResource {
40
+ /**
41
+ * Get an existing FieldLevelEncryptionProfile resource's state with the given name, ID, and optional extra
42
+ * properties used to qualify the lookup.
43
+ *
44
+ * @param name The _unique_ name of the resulting resource.
45
+ * @param id The _unique_ provider ID of the resource to lookup.
46
+ * @param state Any extra arguments used during the lookup.
47
+ * @param opts Optional settings to control the behavior of the CustomResource.
48
+ */
49
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FieldLevelEncryptionProfileState, opts?: pulumi.CustomResourceOptions): FieldLevelEncryptionProfile;
50
+ /**
51
+ * Returns true if the given object is an instance of FieldLevelEncryptionProfile. This is designed to work even
52
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
53
+ */
54
+ static isInstance(obj: any): obj is FieldLevelEncryptionProfile;
55
+ /**
56
+ * Internal value used by CloudFront to allow future updates to the Field Level Encryption Profile.
57
+ */
58
+ readonly callerReference: pulumi.Output<string>;
59
+ /**
60
+ * An optional comment about the Field Level Encryption Profile.
61
+ */
62
+ readonly comment: pulumi.Output<string | undefined>;
63
+ /**
64
+ * The encryption entities config block for field-level encryption profiles that contains an attribute `items` which includes the encryption key and field pattern specifications.
65
+ */
66
+ readonly encryptionEntities: pulumi.Output<outputs.cloudfront.FieldLevelEncryptionProfileEncryptionEntities>;
67
+ /**
68
+ * The current version of the Field Level Encryption Profile. For example: `E2QWRUHAPOMQZL`.
69
+ */
70
+ readonly etag: pulumi.Output<string>;
71
+ /**
72
+ * The name of the Field Level Encryption Profile.
73
+ */
74
+ readonly name: pulumi.Output<string>;
75
+ /**
76
+ * Create a FieldLevelEncryptionProfile resource with the given unique name, arguments, and options.
77
+ *
78
+ * @param name The _unique_ name of the resource.
79
+ * @param args The arguments to use to populate this resource's properties.
80
+ * @param opts A bag of options that control this resource's behavior.
81
+ */
82
+ constructor(name: string, args: FieldLevelEncryptionProfileArgs, opts?: pulumi.CustomResourceOptions);
83
+ }
84
+ /**
85
+ * Input properties used for looking up and filtering FieldLevelEncryptionProfile resources.
86
+ */
87
+ export interface FieldLevelEncryptionProfileState {
88
+ /**
89
+ * Internal value used by CloudFront to allow future updates to the Field Level Encryption Profile.
90
+ */
91
+ callerReference?: pulumi.Input<string>;
92
+ /**
93
+ * An optional comment about the Field Level Encryption Profile.
94
+ */
95
+ comment?: pulumi.Input<string>;
96
+ /**
97
+ * The encryption entities config block for field-level encryption profiles that contains an attribute `items` which includes the encryption key and field pattern specifications.
98
+ */
99
+ encryptionEntities?: pulumi.Input<inputs.cloudfront.FieldLevelEncryptionProfileEncryptionEntities>;
100
+ /**
101
+ * The current version of the Field Level Encryption Profile. For example: `E2QWRUHAPOMQZL`.
102
+ */
103
+ etag?: pulumi.Input<string>;
104
+ /**
105
+ * The name of the Field Level Encryption Profile.
106
+ */
107
+ name?: pulumi.Input<string>;
108
+ }
109
+ /**
110
+ * The set of arguments for constructing a FieldLevelEncryptionProfile resource.
111
+ */
112
+ export interface FieldLevelEncryptionProfileArgs {
113
+ /**
114
+ * An optional comment about the Field Level Encryption Profile.
115
+ */
116
+ comment?: pulumi.Input<string>;
117
+ /**
118
+ * The encryption entities config block for field-level encryption profiles that contains an attribute `items` which includes the encryption key and field pattern specifications.
119
+ */
120
+ encryptionEntities: pulumi.Input<inputs.cloudfront.FieldLevelEncryptionProfileEncryptionEntities>;
121
+ /**
122
+ * The name of the Field Level Encryption Profile.
123
+ */
124
+ name?: pulumi.Input<string>;
125
+ }
@@ -0,0 +1,98 @@
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.FieldLevelEncryptionProfile = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a CloudFront Field-level Encryption Profile resource.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as aws from "@pulumi/aws";
16
+ * import * from "fs";
17
+ *
18
+ * const example = new aws.cloudfront.PublicKey("example", {
19
+ * comment: "test public key",
20
+ * encodedKey: fs.readFileSync("public_key.pem"),
21
+ * });
22
+ * const test = new aws.cloudfront.FieldLevelEncryptionProfile("test", {
23
+ * comment: "test comment",
24
+ * encryptionEntities: {
25
+ * items: [{
26
+ * publicKeyId: example.id,
27
+ * providerId: "test provider",
28
+ * fieldPatterns: {
29
+ * items: ["DateOfBirth"],
30
+ * },
31
+ * }],
32
+ * },
33
+ * });
34
+ * ```
35
+ *
36
+ * ## Import
37
+ *
38
+ * Cloudfront Field Level Encryption Profile can be imported using the `id`, e.g.
39
+ *
40
+ * ```sh
41
+ * $ pulumi import aws:cloudfront/fieldLevelEncryptionProfile:FieldLevelEncryptionProfile profile K3D5EWEUDCCXON
42
+ * ```
43
+ */
44
+ class FieldLevelEncryptionProfile extends pulumi.CustomResource {
45
+ constructor(name, argsOrState, opts) {
46
+ let inputs = {};
47
+ opts = opts || {};
48
+ if (opts.id) {
49
+ const state = argsOrState;
50
+ inputs["callerReference"] = state ? state.callerReference : undefined;
51
+ inputs["comment"] = state ? state.comment : undefined;
52
+ inputs["encryptionEntities"] = state ? state.encryptionEntities : undefined;
53
+ inputs["etag"] = state ? state.etag : undefined;
54
+ inputs["name"] = state ? state.name : undefined;
55
+ }
56
+ else {
57
+ const args = argsOrState;
58
+ if ((!args || args.encryptionEntities === undefined) && !opts.urn) {
59
+ throw new Error("Missing required property 'encryptionEntities'");
60
+ }
61
+ inputs["comment"] = args ? args.comment : undefined;
62
+ inputs["encryptionEntities"] = args ? args.encryptionEntities : undefined;
63
+ inputs["name"] = args ? args.name : undefined;
64
+ inputs["callerReference"] = undefined /*out*/;
65
+ inputs["etag"] = undefined /*out*/;
66
+ }
67
+ if (!opts.version) {
68
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
69
+ }
70
+ super(FieldLevelEncryptionProfile.__pulumiType, name, inputs, opts);
71
+ }
72
+ /**
73
+ * Get an existing FieldLevelEncryptionProfile 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 state Any extra arguments used during the lookup.
79
+ * @param opts Optional settings to control the behavior of the CustomResource.
80
+ */
81
+ static get(name, id, state, opts) {
82
+ return new FieldLevelEncryptionProfile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
83
+ }
84
+ /**
85
+ * Returns true if the given object is an instance of FieldLevelEncryptionProfile. This is designed to work even
86
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
87
+ */
88
+ static isInstance(obj) {
89
+ if (obj === undefined || obj === null) {
90
+ return false;
91
+ }
92
+ return obj['__pulumiType'] === FieldLevelEncryptionProfile.__pulumiType;
93
+ }
94
+ }
95
+ exports.FieldLevelEncryptionProfile = FieldLevelEncryptionProfile;
96
+ /** @internal */
97
+ FieldLevelEncryptionProfile.__pulumiType = 'aws:cloudfront/fieldLevelEncryptionProfile:FieldLevelEncryptionProfile';
98
+ //# sourceMappingURL=fieldLevelEncryptionProfile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldLevelEncryptionProfile.js","sourceRoot":"","sources":["../../cloudfront/fieldLevelEncryptionProfile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,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AAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtC;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,2BAA2B,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IAjFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwC,EAAE,IAAmC;QACtI,OAAO,IAAI,2BAA2B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClF,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,2BAA2B,CAAC,YAAY,CAAC;IAC5E,CAAC;;AA1BL,kEAmFC;AArEG,gBAAgB;AACO,wCAAY,GAAG,wEAAwE,CAAC"}
@@ -59,9 +59,13 @@ export declare class Function extends pulumi.CustomResource {
59
59
  */
60
60
  readonly comment: pulumi.Output<string | undefined>;
61
61
  /**
62
- * ETag hash of the function
62
+ * ETag hash of the function. This is the value for the `DEVELOPMENT` stage of the function.
63
63
  */
64
64
  readonly etag: pulumi.Output<string>;
65
+ /**
66
+ * ETag hash of any `LIVE` stage of the function.
67
+ */
68
+ readonly liveStageEtag: pulumi.Output<string>;
65
69
  /**
66
70
  * Unique name for your CloudFront Function.
67
71
  */
@@ -104,9 +108,13 @@ export interface FunctionState {
104
108
  */
105
109
  comment?: pulumi.Input<string>;
106
110
  /**
107
- * ETag hash of the function
111
+ * ETag hash of the function. This is the value for the `DEVELOPMENT` stage of the function.
108
112
  */
109
113
  etag?: pulumi.Input<string>;
114
+ /**
115
+ * ETag hash of any `LIVE` stage of the function.
116
+ */
117
+ liveStageEtag?: pulumi.Input<string>;
110
118
  /**
111
119
  * Unique name for your CloudFront Function.
112
120
  */