@pulumi/aws 7.5.0-alpha.1755260371 → 7.5.0-alpha.1755693893
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.
- package/appsync/api.d.ts +258 -0
- package/appsync/api.js +167 -0
- package/appsync/api.js.map +1 -0
- package/appsync/channelNamespace.d.ts +191 -0
- package/appsync/channelNamespace.js +95 -0
- package/appsync/channelNamespace.js.map +1 -0
- package/appsync/index.d.ts +6 -0
- package/appsync/index.js +11 -1
- package/appsync/index.js.map +1 -1
- package/autoscaling/lifecycleHook.d.ts +3 -3
- package/codebuild/project.d.ts +7 -0
- package/codebuild/project.js +7 -0
- package/codebuild/project.js.map +1 -1
- package/codebuild/webhook.d.ts +21 -0
- package/codebuild/webhook.js +21 -0
- package/codebuild/webhook.js.map +1 -1
- package/ec2/flowLog.d.ts +116 -7
- package/ec2/flowLog.js +110 -1
- package/ec2/flowLog.js.map +1 -1
- package/ec2/vpcIpamPoolCidr.d.ts +1 -1
- package/eks/cluster.d.ts +12 -0
- package/eks/cluster.js +2 -0
- package/eks/cluster.js.map +1 -1
- package/eks/getCluster.d.ts +4 -0
- package/eks/getCluster.js.map +1 -1
- package/finspace/kxVolume.d.ts +1 -1
- package/finspace/kxVolume.js +1 -1
- package/msk/cluster.d.ts +18 -18
- package/package.json +2 -2
- package/ram/getResourceShare.d.ts +2 -2
- package/route53/resolverEndpoint.d.ts +3 -6
- package/route53/resolverEndpoint.js.map +1 -1
- package/types/input.d.ts +219 -18
- package/types/input.js.map +1 -1
- package/types/output.d.ts +223 -18
- package/types/output.js.map +1 -1
package/appsync/api.d.ts
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages an [AWS AppSync Event API](https://docs.aws.amazon.com/appsync/latest/eventapi/event-api-concepts.html#API). Event APIs enable real-time subscriptions and event-driven communication in AppSync applications.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ### Basic Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as aws from "@pulumi/aws";
|
|
14
|
+
*
|
|
15
|
+
* const example = new aws.appsync.Api("example", {
|
|
16
|
+
* name: "example-event-api",
|
|
17
|
+
* eventConfig: {
|
|
18
|
+
* authProviders: [{
|
|
19
|
+
* authType: "API_KEY",
|
|
20
|
+
* }],
|
|
21
|
+
* connectionAuthModes: [{
|
|
22
|
+
* authType: "API_KEY",
|
|
23
|
+
* }],
|
|
24
|
+
* defaultPublishAuthModes: [{
|
|
25
|
+
* authType: "API_KEY",
|
|
26
|
+
* }],
|
|
27
|
+
* defaultSubscribeAuthModes: [{
|
|
28
|
+
* authType: "API_KEY",
|
|
29
|
+
* }],
|
|
30
|
+
* },
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ### With Cognito Authentication
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as aws from "@pulumi/aws";
|
|
39
|
+
*
|
|
40
|
+
* const example = new aws.cognito.UserPool("example", {name: "example-user-pool"});
|
|
41
|
+
* const current = aws.getRegion({});
|
|
42
|
+
* const exampleApi = new aws.appsync.Api("example", {
|
|
43
|
+
* name: "example-event-api",
|
|
44
|
+
* eventConfig: {
|
|
45
|
+
* authProviders: [{
|
|
46
|
+
* authType: "AMAZON_COGNITO_USER_POOLS",
|
|
47
|
+
* cognitoConfig: {
|
|
48
|
+
* userPoolId: example.id,
|
|
49
|
+
* awsRegion: current.then(current => current.name),
|
|
50
|
+
* },
|
|
51
|
+
* }],
|
|
52
|
+
* connectionAuthModes: [{
|
|
53
|
+
* authType: "AMAZON_COGNITO_USER_POOLS",
|
|
54
|
+
* }],
|
|
55
|
+
* defaultPublishAuthModes: [{
|
|
56
|
+
* authType: "AMAZON_COGNITO_USER_POOLS",
|
|
57
|
+
* }],
|
|
58
|
+
* defaultSubscribeAuthModes: [{
|
|
59
|
+
* authType: "AMAZON_COGNITO_USER_POOLS",
|
|
60
|
+
* }],
|
|
61
|
+
* },
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* ### With Lambda Authorizer
|
|
66
|
+
*
|
|
67
|
+
* ```typescript
|
|
68
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
69
|
+
* import * as aws from "@pulumi/aws";
|
|
70
|
+
*
|
|
71
|
+
* const example = new aws.appsync.Api("example", {
|
|
72
|
+
* name: "example-event-api",
|
|
73
|
+
* eventConfig: {
|
|
74
|
+
* authProviders: [{
|
|
75
|
+
* authType: "AWS_LAMBDA",
|
|
76
|
+
* lambdaAuthorizerConfig: {
|
|
77
|
+
* authorizerUri: exampleAwsLambdaFunction.invokeArn,
|
|
78
|
+
* authorizerResultTtlInSeconds: 300,
|
|
79
|
+
* },
|
|
80
|
+
* }],
|
|
81
|
+
* connectionAuthModes: [{
|
|
82
|
+
* authType: "AWS_LAMBDA",
|
|
83
|
+
* }],
|
|
84
|
+
* defaultPublishAuthModes: [{
|
|
85
|
+
* authType: "AWS_LAMBDA",
|
|
86
|
+
* }],
|
|
87
|
+
* defaultSubscribeAuthModes: [{
|
|
88
|
+
* authType: "AWS_LAMBDA",
|
|
89
|
+
* }],
|
|
90
|
+
* },
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* ## Import
|
|
95
|
+
*
|
|
96
|
+
* Using `pulumi import`, import AppSync Event API using the `api_id`. For example:
|
|
97
|
+
*
|
|
98
|
+
* ```sh
|
|
99
|
+
* $ pulumi import aws:appsync/api:Api example example-api-id
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
export declare class Api extends pulumi.CustomResource {
|
|
103
|
+
/**
|
|
104
|
+
* Get an existing Api resource's state with the given name, ID, and optional extra
|
|
105
|
+
* properties used to qualify the lookup.
|
|
106
|
+
*
|
|
107
|
+
* @param name The _unique_ name of the resulting resource.
|
|
108
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
109
|
+
* @param state Any extra arguments used during the lookup.
|
|
110
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
111
|
+
*/
|
|
112
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiState, opts?: pulumi.CustomResourceOptions): Api;
|
|
113
|
+
/**
|
|
114
|
+
* Returns true if the given object is an instance of Api. This is designed to work even
|
|
115
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
116
|
+
*/
|
|
117
|
+
static isInstance(obj: any): obj is Api;
|
|
118
|
+
/**
|
|
119
|
+
* ARN of the Event API.
|
|
120
|
+
*/
|
|
121
|
+
readonly apiArn: pulumi.Output<string>;
|
|
122
|
+
/**
|
|
123
|
+
* ID of the Event API.
|
|
124
|
+
*/
|
|
125
|
+
readonly apiId: pulumi.Output<string>;
|
|
126
|
+
/**
|
|
127
|
+
* DNS configuration for the Event API.
|
|
128
|
+
*/
|
|
129
|
+
readonly dns: pulumi.Output<{
|
|
130
|
+
[key: string]: string;
|
|
131
|
+
}>;
|
|
132
|
+
/**
|
|
133
|
+
* Configuration for the Event API. See Event Config below.
|
|
134
|
+
*/
|
|
135
|
+
readonly eventConfig: pulumi.Output<outputs.appsync.ApiEventConfig | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* Name of the Event API.
|
|
138
|
+
*
|
|
139
|
+
* The following arguments are optional:
|
|
140
|
+
*/
|
|
141
|
+
readonly name: pulumi.Output<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Contact information for the owner of the Event API.
|
|
144
|
+
*/
|
|
145
|
+
readonly ownerContact: pulumi.Output<string | undefined>;
|
|
146
|
+
/**
|
|
147
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
148
|
+
*/
|
|
149
|
+
readonly region: pulumi.Output<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
152
|
+
*/
|
|
153
|
+
readonly tags: pulumi.Output<{
|
|
154
|
+
[key: string]: string;
|
|
155
|
+
} | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
158
|
+
*/
|
|
159
|
+
readonly tagsAll: pulumi.Output<{
|
|
160
|
+
[key: string]: string;
|
|
161
|
+
}>;
|
|
162
|
+
/**
|
|
163
|
+
* ARN of the associated WAF web ACL.
|
|
164
|
+
*/
|
|
165
|
+
readonly wafWebAclArn: pulumi.Output<string>;
|
|
166
|
+
readonly xrayEnabled: pulumi.Output<boolean>;
|
|
167
|
+
/**
|
|
168
|
+
* Create a Api resource with the given unique name, arguments, and options.
|
|
169
|
+
*
|
|
170
|
+
* @param name The _unique_ name of the resource.
|
|
171
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
172
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
173
|
+
*/
|
|
174
|
+
constructor(name: string, args?: ApiArgs, opts?: pulumi.CustomResourceOptions);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Input properties used for looking up and filtering Api resources.
|
|
178
|
+
*/
|
|
179
|
+
export interface ApiState {
|
|
180
|
+
/**
|
|
181
|
+
* ARN of the Event API.
|
|
182
|
+
*/
|
|
183
|
+
apiArn?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* ID of the Event API.
|
|
186
|
+
*/
|
|
187
|
+
apiId?: pulumi.Input<string>;
|
|
188
|
+
/**
|
|
189
|
+
* DNS configuration for the Event API.
|
|
190
|
+
*/
|
|
191
|
+
dns?: pulumi.Input<{
|
|
192
|
+
[key: string]: pulumi.Input<string>;
|
|
193
|
+
}>;
|
|
194
|
+
/**
|
|
195
|
+
* Configuration for the Event API. See Event Config below.
|
|
196
|
+
*/
|
|
197
|
+
eventConfig?: pulumi.Input<inputs.appsync.ApiEventConfig>;
|
|
198
|
+
/**
|
|
199
|
+
* Name of the Event API.
|
|
200
|
+
*
|
|
201
|
+
* The following arguments are optional:
|
|
202
|
+
*/
|
|
203
|
+
name?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* Contact information for the owner of the Event API.
|
|
206
|
+
*/
|
|
207
|
+
ownerContact?: pulumi.Input<string>;
|
|
208
|
+
/**
|
|
209
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
210
|
+
*/
|
|
211
|
+
region?: pulumi.Input<string>;
|
|
212
|
+
/**
|
|
213
|
+
* Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
214
|
+
*/
|
|
215
|
+
tags?: pulumi.Input<{
|
|
216
|
+
[key: string]: pulumi.Input<string>;
|
|
217
|
+
}>;
|
|
218
|
+
/**
|
|
219
|
+
* Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
220
|
+
*/
|
|
221
|
+
tagsAll?: pulumi.Input<{
|
|
222
|
+
[key: string]: pulumi.Input<string>;
|
|
223
|
+
}>;
|
|
224
|
+
/**
|
|
225
|
+
* ARN of the associated WAF web ACL.
|
|
226
|
+
*/
|
|
227
|
+
wafWebAclArn?: pulumi.Input<string>;
|
|
228
|
+
xrayEnabled?: pulumi.Input<boolean>;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The set of arguments for constructing a Api resource.
|
|
232
|
+
*/
|
|
233
|
+
export interface ApiArgs {
|
|
234
|
+
/**
|
|
235
|
+
* Configuration for the Event API. See Event Config below.
|
|
236
|
+
*/
|
|
237
|
+
eventConfig?: pulumi.Input<inputs.appsync.ApiEventConfig>;
|
|
238
|
+
/**
|
|
239
|
+
* Name of the Event API.
|
|
240
|
+
*
|
|
241
|
+
* The following arguments are optional:
|
|
242
|
+
*/
|
|
243
|
+
name?: pulumi.Input<string>;
|
|
244
|
+
/**
|
|
245
|
+
* Contact information for the owner of the Event API.
|
|
246
|
+
*/
|
|
247
|
+
ownerContact?: pulumi.Input<string>;
|
|
248
|
+
/**
|
|
249
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
250
|
+
*/
|
|
251
|
+
region?: pulumi.Input<string>;
|
|
252
|
+
/**
|
|
253
|
+
* Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
254
|
+
*/
|
|
255
|
+
tags?: pulumi.Input<{
|
|
256
|
+
[key: string]: pulumi.Input<string>;
|
|
257
|
+
}>;
|
|
258
|
+
}
|
package/appsync/api.js
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.Api = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages an [AWS AppSync Event API](https://docs.aws.amazon.com/appsync/latest/eventapi/event-api-concepts.html#API). Event APIs enable real-time subscriptions and event-driven communication in AppSync applications.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Basic Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const example = new aws.appsync.Api("example", {
|
|
20
|
+
* name: "example-event-api",
|
|
21
|
+
* eventConfig: {
|
|
22
|
+
* authProviders: [{
|
|
23
|
+
* authType: "API_KEY",
|
|
24
|
+
* }],
|
|
25
|
+
* connectionAuthModes: [{
|
|
26
|
+
* authType: "API_KEY",
|
|
27
|
+
* }],
|
|
28
|
+
* defaultPublishAuthModes: [{
|
|
29
|
+
* authType: "API_KEY",
|
|
30
|
+
* }],
|
|
31
|
+
* defaultSubscribeAuthModes: [{
|
|
32
|
+
* authType: "API_KEY",
|
|
33
|
+
* }],
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ### With Cognito Authentication
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as aws from "@pulumi/aws";
|
|
43
|
+
*
|
|
44
|
+
* const example = new aws.cognito.UserPool("example", {name: "example-user-pool"});
|
|
45
|
+
* const current = aws.getRegion({});
|
|
46
|
+
* const exampleApi = new aws.appsync.Api("example", {
|
|
47
|
+
* name: "example-event-api",
|
|
48
|
+
* eventConfig: {
|
|
49
|
+
* authProviders: [{
|
|
50
|
+
* authType: "AMAZON_COGNITO_USER_POOLS",
|
|
51
|
+
* cognitoConfig: {
|
|
52
|
+
* userPoolId: example.id,
|
|
53
|
+
* awsRegion: current.then(current => current.name),
|
|
54
|
+
* },
|
|
55
|
+
* }],
|
|
56
|
+
* connectionAuthModes: [{
|
|
57
|
+
* authType: "AMAZON_COGNITO_USER_POOLS",
|
|
58
|
+
* }],
|
|
59
|
+
* defaultPublishAuthModes: [{
|
|
60
|
+
* authType: "AMAZON_COGNITO_USER_POOLS",
|
|
61
|
+
* }],
|
|
62
|
+
* defaultSubscribeAuthModes: [{
|
|
63
|
+
* authType: "AMAZON_COGNITO_USER_POOLS",
|
|
64
|
+
* }],
|
|
65
|
+
* },
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* ### With Lambda Authorizer
|
|
70
|
+
*
|
|
71
|
+
* ```typescript
|
|
72
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
73
|
+
* import * as aws from "@pulumi/aws";
|
|
74
|
+
*
|
|
75
|
+
* const example = new aws.appsync.Api("example", {
|
|
76
|
+
* name: "example-event-api",
|
|
77
|
+
* eventConfig: {
|
|
78
|
+
* authProviders: [{
|
|
79
|
+
* authType: "AWS_LAMBDA",
|
|
80
|
+
* lambdaAuthorizerConfig: {
|
|
81
|
+
* authorizerUri: exampleAwsLambdaFunction.invokeArn,
|
|
82
|
+
* authorizerResultTtlInSeconds: 300,
|
|
83
|
+
* },
|
|
84
|
+
* }],
|
|
85
|
+
* connectionAuthModes: [{
|
|
86
|
+
* authType: "AWS_LAMBDA",
|
|
87
|
+
* }],
|
|
88
|
+
* defaultPublishAuthModes: [{
|
|
89
|
+
* authType: "AWS_LAMBDA",
|
|
90
|
+
* }],
|
|
91
|
+
* defaultSubscribeAuthModes: [{
|
|
92
|
+
* authType: "AWS_LAMBDA",
|
|
93
|
+
* }],
|
|
94
|
+
* },
|
|
95
|
+
* });
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* ## Import
|
|
99
|
+
*
|
|
100
|
+
* Using `pulumi import`, import AppSync Event API using the `api_id`. For example:
|
|
101
|
+
*
|
|
102
|
+
* ```sh
|
|
103
|
+
* $ pulumi import aws:appsync/api:Api example example-api-id
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
class Api extends pulumi.CustomResource {
|
|
107
|
+
/**
|
|
108
|
+
* Get an existing Api resource's state with the given name, ID, and optional extra
|
|
109
|
+
* properties used to qualify the lookup.
|
|
110
|
+
*
|
|
111
|
+
* @param name The _unique_ name of the resulting resource.
|
|
112
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
113
|
+
* @param state Any extra arguments used during the lookup.
|
|
114
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
115
|
+
*/
|
|
116
|
+
static get(name, id, state, opts) {
|
|
117
|
+
return new Api(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Returns true if the given object is an instance of Api. This is designed to work even
|
|
121
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
122
|
+
*/
|
|
123
|
+
static isInstance(obj) {
|
|
124
|
+
if (obj === undefined || obj === null) {
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
return obj['__pulumiType'] === Api.__pulumiType;
|
|
128
|
+
}
|
|
129
|
+
constructor(name, argsOrState, opts) {
|
|
130
|
+
let resourceInputs = {};
|
|
131
|
+
opts = opts || {};
|
|
132
|
+
if (opts.id) {
|
|
133
|
+
const state = argsOrState;
|
|
134
|
+
resourceInputs["apiArn"] = state ? state.apiArn : undefined;
|
|
135
|
+
resourceInputs["apiId"] = state ? state.apiId : undefined;
|
|
136
|
+
resourceInputs["dns"] = state ? state.dns : undefined;
|
|
137
|
+
resourceInputs["eventConfig"] = state ? state.eventConfig : undefined;
|
|
138
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
139
|
+
resourceInputs["ownerContact"] = state ? state.ownerContact : undefined;
|
|
140
|
+
resourceInputs["region"] = state ? state.region : undefined;
|
|
141
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
142
|
+
resourceInputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
143
|
+
resourceInputs["wafWebAclArn"] = state ? state.wafWebAclArn : undefined;
|
|
144
|
+
resourceInputs["xrayEnabled"] = state ? state.xrayEnabled : undefined;
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
const args = argsOrState;
|
|
148
|
+
resourceInputs["eventConfig"] = args ? args.eventConfig : undefined;
|
|
149
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
150
|
+
resourceInputs["ownerContact"] = args ? args.ownerContact : undefined;
|
|
151
|
+
resourceInputs["region"] = args ? args.region : undefined;
|
|
152
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
153
|
+
resourceInputs["apiArn"] = undefined /*out*/;
|
|
154
|
+
resourceInputs["apiId"] = undefined /*out*/;
|
|
155
|
+
resourceInputs["dns"] = undefined /*out*/;
|
|
156
|
+
resourceInputs["tagsAll"] = undefined /*out*/;
|
|
157
|
+
resourceInputs["wafWebAclArn"] = undefined /*out*/;
|
|
158
|
+
resourceInputs["xrayEnabled"] = undefined /*out*/;
|
|
159
|
+
}
|
|
160
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
161
|
+
super(Api.__pulumiType, name, resourceInputs, opts);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.Api = Api;
|
|
165
|
+
/** @internal */
|
|
166
|
+
Api.__pulumiType = 'aws:appsync/api:Api';
|
|
167
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../appsync/api.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiGG;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,KA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C,OAAO,CAAC;SACrD;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;;AAhHL,kBAiHC;AAnGG,gBAAgB;AACO,gBAAY,GAAG,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages an [AWS AppSync Channel Namespace](https://docs.aws.amazon.com/appsync/latest/eventapi/event-api-concepts.html#namespace).
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ### Basic Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as aws from "@pulumi/aws";
|
|
14
|
+
*
|
|
15
|
+
* const example = new aws.appsync.ChannelNamespace("example", {
|
|
16
|
+
* name: "example-channel-namespace",
|
|
17
|
+
* apiId: exampleAwsAppsyncApi.apiId,
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ## Import
|
|
22
|
+
*
|
|
23
|
+
* Using `pulumi import`, import AppSync Channel Namespace using the `api_id` and `name` separated by a comma (`,`). For example:
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import aws:appsync/channelNamespace:ChannelNamespace example example-api-id,example-channel-namespace
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class ChannelNamespace extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing ChannelNamespace resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ChannelNamespaceState, opts?: pulumi.CustomResourceOptions): ChannelNamespace;
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of ChannelNamespace. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj: any): obj is ChannelNamespace;
|
|
45
|
+
/**
|
|
46
|
+
* Event API ID.
|
|
47
|
+
*/
|
|
48
|
+
readonly apiId: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* ARN of the channel namespace.
|
|
51
|
+
*/
|
|
52
|
+
readonly channelNamespaceArn: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Event handler functions that run custom business logic to process published events and subscribe requests.
|
|
55
|
+
*/
|
|
56
|
+
readonly codeHandlers: pulumi.Output<string | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Configuration for the `onPublish` and `onSubscribe` handlers. See Handler Configs below.
|
|
59
|
+
*/
|
|
60
|
+
readonly handlerConfigs: pulumi.Output<outputs.appsync.ChannelNamespaceHandlerConfigs | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Name of the channel namespace.
|
|
63
|
+
*
|
|
64
|
+
* The following arguments are optional:
|
|
65
|
+
*/
|
|
66
|
+
readonly name: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
|
|
69
|
+
*/
|
|
70
|
+
readonly publishAuthModes: pulumi.Output<outputs.appsync.ChannelNamespacePublishAuthMode[] | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
73
|
+
*/
|
|
74
|
+
readonly region: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
|
|
77
|
+
*/
|
|
78
|
+
readonly subscribeAuthModes: pulumi.Output<outputs.appsync.ChannelNamespaceSubscribeAuthMode[] | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
81
|
+
*/
|
|
82
|
+
readonly tags: pulumi.Output<{
|
|
83
|
+
[key: string]: string;
|
|
84
|
+
} | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
87
|
+
*/
|
|
88
|
+
readonly tagsAll: pulumi.Output<{
|
|
89
|
+
[key: string]: string;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* Create a ChannelNamespace resource with the given unique name, arguments, and options.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resource.
|
|
95
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
96
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
97
|
+
*/
|
|
98
|
+
constructor(name: string, args: ChannelNamespaceArgs, opts?: pulumi.CustomResourceOptions);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Input properties used for looking up and filtering ChannelNamespace resources.
|
|
102
|
+
*/
|
|
103
|
+
export interface ChannelNamespaceState {
|
|
104
|
+
/**
|
|
105
|
+
* Event API ID.
|
|
106
|
+
*/
|
|
107
|
+
apiId?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* ARN of the channel namespace.
|
|
110
|
+
*/
|
|
111
|
+
channelNamespaceArn?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Event handler functions that run custom business logic to process published events and subscribe requests.
|
|
114
|
+
*/
|
|
115
|
+
codeHandlers?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Configuration for the `onPublish` and `onSubscribe` handlers. See Handler Configs below.
|
|
118
|
+
*/
|
|
119
|
+
handlerConfigs?: pulumi.Input<inputs.appsync.ChannelNamespaceHandlerConfigs>;
|
|
120
|
+
/**
|
|
121
|
+
* Name of the channel namespace.
|
|
122
|
+
*
|
|
123
|
+
* The following arguments are optional:
|
|
124
|
+
*/
|
|
125
|
+
name?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
|
|
128
|
+
*/
|
|
129
|
+
publishAuthModes?: pulumi.Input<pulumi.Input<inputs.appsync.ChannelNamespacePublishAuthMode>[]>;
|
|
130
|
+
/**
|
|
131
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
132
|
+
*/
|
|
133
|
+
region?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
|
|
136
|
+
*/
|
|
137
|
+
subscribeAuthModes?: pulumi.Input<pulumi.Input<inputs.appsync.ChannelNamespaceSubscribeAuthMode>[]>;
|
|
138
|
+
/**
|
|
139
|
+
* Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
140
|
+
*/
|
|
141
|
+
tags?: pulumi.Input<{
|
|
142
|
+
[key: string]: pulumi.Input<string>;
|
|
143
|
+
}>;
|
|
144
|
+
/**
|
|
145
|
+
* Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
146
|
+
*/
|
|
147
|
+
tagsAll?: pulumi.Input<{
|
|
148
|
+
[key: string]: pulumi.Input<string>;
|
|
149
|
+
}>;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The set of arguments for constructing a ChannelNamespace resource.
|
|
153
|
+
*/
|
|
154
|
+
export interface ChannelNamespaceArgs {
|
|
155
|
+
/**
|
|
156
|
+
* Event API ID.
|
|
157
|
+
*/
|
|
158
|
+
apiId: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Event handler functions that run custom business logic to process published events and subscribe requests.
|
|
161
|
+
*/
|
|
162
|
+
codeHandlers?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* Configuration for the `onPublish` and `onSubscribe` handlers. See Handler Configs below.
|
|
165
|
+
*/
|
|
166
|
+
handlerConfigs?: pulumi.Input<inputs.appsync.ChannelNamespaceHandlerConfigs>;
|
|
167
|
+
/**
|
|
168
|
+
* Name of the channel namespace.
|
|
169
|
+
*
|
|
170
|
+
* The following arguments are optional:
|
|
171
|
+
*/
|
|
172
|
+
name?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
|
|
175
|
+
*/
|
|
176
|
+
publishAuthModes?: pulumi.Input<pulumi.Input<inputs.appsync.ChannelNamespacePublishAuthMode>[]>;
|
|
177
|
+
/**
|
|
178
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
179
|
+
*/
|
|
180
|
+
region?: pulumi.Input<string>;
|
|
181
|
+
/**
|
|
182
|
+
* Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
|
|
183
|
+
*/
|
|
184
|
+
subscribeAuthModes?: pulumi.Input<pulumi.Input<inputs.appsync.ChannelNamespaceSubscribeAuthMode>[]>;
|
|
185
|
+
/**
|
|
186
|
+
* Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
187
|
+
*/
|
|
188
|
+
tags?: pulumi.Input<{
|
|
189
|
+
[key: string]: pulumi.Input<string>;
|
|
190
|
+
}>;
|
|
191
|
+
}
|