pulumi-aws-apigateway 2.7.0a1743528615__py3-none-any.whl → 2.7.0a1743596039__py3-none-any.whl

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.

Potentially problematic release.


This version of pulumi-aws-apigateway might be problematic. Click here for more details.

@@ -2,6 +2,7 @@
2
2
  # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
+ import builtins
5
6
  from . import _utilities
6
7
  import typing
7
8
  # Export this package's modules as members:
@@ -2,6 +2,8 @@
2
2
  # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
+ import builtins
6
+ import builtins
5
7
  from enum import Enum
6
8
 
7
9
  __all__ = [
@@ -14,23 +16,23 @@ __all__ = [
14
16
  ]
15
17
 
16
18
 
17
- class APIKeySource(str, Enum):
19
+ class APIKeySource(builtins.str, Enum):
18
20
  HEADER = "HEADER"
19
21
  AUTHORIZER = "AUTHORIZER"
20
22
 
21
23
 
22
- class IntegrationConnectionType(str, Enum):
24
+ class IntegrationConnectionType(builtins.str, Enum):
23
25
  INTERNET = "INTERNET"
24
26
  VP_C_LINK = "VPC_LINK"
25
27
 
26
28
 
27
- class IntegrationPassthroughBehavior(str, Enum):
29
+ class IntegrationPassthroughBehavior(builtins.str, Enum):
28
30
  WHEN_NO_MATCH = "when_no_match"
29
31
  WHEN_NO_TEMPLATES = "when_no_templates"
30
32
  NEVER = "never"
31
33
 
32
34
 
33
- class IntegrationType(str, Enum):
35
+ class IntegrationType(builtins.str, Enum):
34
36
  AWS = "aws"
35
37
  AWS_PROXY = "aws_proxy"
36
38
  HTTP = "http"
@@ -38,7 +40,7 @@ class IntegrationType(str, Enum):
38
40
  MOCK = "mock"
39
41
 
40
42
 
41
- class Method(str, Enum):
43
+ class Method(builtins.str, Enum):
42
44
  ANY = "ANY"
43
45
  GET = "GET"
44
46
  PUT = "PUT"
@@ -49,7 +51,7 @@ class Method(str, Enum):
49
51
  HEAD = "HEAD"
50
52
 
51
53
 
52
- class RequestValidator(str, Enum):
54
+ class RequestValidator(builtins.str, Enum):
53
55
  ALL = "ALL"
54
56
  PARAM_S_ONLY = "PARAMS_ONLY"
55
57
  BOD_Y_ONLY = "BODY_ONLY"
@@ -2,6 +2,7 @@
2
2
  # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
+ import builtins
5
6
  import copy
6
7
  import warnings
7
8
  import sys
@@ -36,21 +37,21 @@ if not MYPY:
36
37
  """
37
38
  LambdaAuthorizer provides the definition for a custom Authorizer for API Gateway.
38
39
  """
39
- parameter_name: str
40
+ parameter_name: builtins.str
40
41
  """
41
42
  parameterName is the name of the header or query parameter containing the authorization
42
43
  token. Must be "Unused" for multiple identity sources.
43
44
  """
44
- auth_type: NotRequired[str]
45
+ auth_type: NotRequired[builtins.str]
45
46
  """
46
47
  Specifies the authorization mechanism for the client. Typical values are "oauth2" or "custom".
47
48
  """
48
- authorizer_name: NotRequired[str]
49
+ authorizer_name: NotRequired[builtins.str]
49
50
  """
50
51
  The name for the Authorizer to be referenced as. This must be unique for each unique
51
52
  authorizer within the API. If no name if specified, a name will be generated for you.
52
53
  """
53
- authorizer_result_ttl_in_seconds: NotRequired[float]
54
+ authorizer_result_ttl_in_seconds: NotRequired[builtins.float]
54
55
  """
55
56
  The number of seconds during which the resulting IAM policy is cached. Default is 300s. You
56
57
  can set this value to 0 to disable caching. Max value is 3600s. Note - if you are sharing an
@@ -61,20 +62,20 @@ if not MYPY:
61
62
  """
62
63
  The authorizerHandler specifies information about the authorizing Lambda.
63
64
  """
64
- identity_source: NotRequired[Sequence[str]]
65
+ identity_source: NotRequired[Sequence[builtins.str]]
65
66
  """
66
67
  List of mapping expressions of the request parameters as the identity source. This indicates
67
68
  where in the request identity information is expected. Applicable for the authorizer of the
68
69
  "request" type only. Example: ["method.request.header.HeaderAuth1",
69
70
  "method.request.querystring.QueryString1"]
70
71
  """
71
- identity_validation_expression: NotRequired[str]
72
+ identity_validation_expression: NotRequired[builtins.str]
72
73
  """
73
74
  A regular expression for validating the token as the incoming identity. It only invokes the
74
75
  authorizer's lambda if there is a match, else it will return a 401. This does not apply to
75
76
  REQUEST Lambda Authorizers. Example: "^x-[a-z]+".
76
77
  """
77
- methods_to_authorize: NotRequired[Sequence[str]]
78
+ methods_to_authorize: NotRequired[Sequence[builtins.str]]
78
79
  """
79
80
  For method authorization, you can define resource servers and custom scopes by specifying the
80
81
  "resource-server/scope". e.g. ["com.hamuta.movies/drama.view",
@@ -82,16 +83,16 @@ if not MYPY:
82
83
  scopes visit the AWS documentation -
83
84
  https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html
84
85
  """
85
- parameter_location: NotRequired[str]
86
+ parameter_location: NotRequired[builtins.str]
86
87
  """
87
88
  Defines where in the request API Gateway should look for identity information. The value must
88
89
  be "header" or "query". If there are multiple identity sources, the value must be "header".
89
90
  """
90
- provider_arns: NotRequired[Sequence[pulumi.Input[str]]]
91
+ provider_arns: NotRequired[Sequence[pulumi.Input[builtins.str]]]
91
92
  """
92
93
  The ARNs of the Cognito User Pools to use.
93
94
  """
94
- type: NotRequired[str]
95
+ type: NotRequired[builtins.str]
95
96
  """
96
97
  The type of the authorizer. This value must be one of the following:
97
98
  - "token", for an authorizer with the caller identity embedded in an authorization token
@@ -103,46 +104,46 @@ elif False:
103
104
  @pulumi.input_type
104
105
  class AuthorizerArgs:
105
106
  def __init__(__self__, *,
106
- parameter_name: str,
107
- auth_type: Optional[str] = None,
108
- authorizer_name: Optional[str] = None,
109
- authorizer_result_ttl_in_seconds: Optional[float] = None,
107
+ parameter_name: builtins.str,
108
+ auth_type: Optional[builtins.str] = None,
109
+ authorizer_name: Optional[builtins.str] = None,
110
+ authorizer_result_ttl_in_seconds: Optional[builtins.float] = None,
110
111
  handler: Optional[pulumi.Input['pulumi_aws.lambda_.Function']] = None,
111
- identity_source: Optional[Sequence[str]] = None,
112
- identity_validation_expression: Optional[str] = None,
113
- methods_to_authorize: Optional[Sequence[str]] = None,
114
- parameter_location: Optional[str] = None,
115
- provider_arns: Optional[Sequence[pulumi.Input[str]]] = None,
116
- type: Optional[str] = None):
112
+ identity_source: Optional[Sequence[builtins.str]] = None,
113
+ identity_validation_expression: Optional[builtins.str] = None,
114
+ methods_to_authorize: Optional[Sequence[builtins.str]] = None,
115
+ parameter_location: Optional[builtins.str] = None,
116
+ provider_arns: Optional[Sequence[pulumi.Input[builtins.str]]] = None,
117
+ type: Optional[builtins.str] = None):
117
118
  """
118
119
  LambdaAuthorizer provides the definition for a custom Authorizer for API Gateway.
119
120
 
120
- :param str parameter_name: parameterName is the name of the header or query parameter containing the authorization
121
+ :param builtins.str parameter_name: parameterName is the name of the header or query parameter containing the authorization
121
122
  token. Must be "Unused" for multiple identity sources.
122
- :param str auth_type: Specifies the authorization mechanism for the client. Typical values are "oauth2" or "custom".
123
- :param str authorizer_name: The name for the Authorizer to be referenced as. This must be unique for each unique
123
+ :param builtins.str auth_type: Specifies the authorization mechanism for the client. Typical values are "oauth2" or "custom".
124
+ :param builtins.str authorizer_name: The name for the Authorizer to be referenced as. This must be unique for each unique
124
125
  authorizer within the API. If no name if specified, a name will be generated for you.
125
- :param float authorizer_result_ttl_in_seconds: The number of seconds during which the resulting IAM policy is cached. Default is 300s. You
126
+ :param builtins.float authorizer_result_ttl_in_seconds: The number of seconds during which the resulting IAM policy is cached. Default is 300s. You
126
127
  can set this value to 0 to disable caching. Max value is 3600s. Note - if you are sharing an
127
128
  authorizer across more than one route you will want to disable the cache or else it will
128
129
  cause problems for you.
129
130
  :param pulumi.Input['pulumi_aws.lambda_.Function'] handler: The authorizerHandler specifies information about the authorizing Lambda.
130
- :param Sequence[str] identity_source: List of mapping expressions of the request parameters as the identity source. This indicates
131
+ :param Sequence[builtins.str] identity_source: List of mapping expressions of the request parameters as the identity source. This indicates
131
132
  where in the request identity information is expected. Applicable for the authorizer of the
132
133
  "request" type only. Example: ["method.request.header.HeaderAuth1",
133
134
  "method.request.querystring.QueryString1"]
134
- :param str identity_validation_expression: A regular expression for validating the token as the incoming identity. It only invokes the
135
+ :param builtins.str identity_validation_expression: A regular expression for validating the token as the incoming identity. It only invokes the
135
136
  authorizer's lambda if there is a match, else it will return a 401. This does not apply to
136
137
  REQUEST Lambda Authorizers. Example: "^x-[a-z]+".
137
- :param Sequence[str] methods_to_authorize: For method authorization, you can define resource servers and custom scopes by specifying the
138
+ :param Sequence[builtins.str] methods_to_authorize: For method authorization, you can define resource servers and custom scopes by specifying the
138
139
  "resource-server/scope". e.g. ["com.hamuta.movies/drama.view",
139
140
  "http://my.resource.com/file.read"] For more information on resource servers and custom
140
141
  scopes visit the AWS documentation -
141
142
  https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html
142
- :param str parameter_location: Defines where in the request API Gateway should look for identity information. The value must
143
+ :param builtins.str parameter_location: Defines where in the request API Gateway should look for identity information. The value must
143
144
  be "header" or "query". If there are multiple identity sources, the value must be "header".
144
- :param Sequence[pulumi.Input[str]] provider_arns: The ARNs of the Cognito User Pools to use.
145
- :param str type: The type of the authorizer. This value must be one of the following:
145
+ :param Sequence[pulumi.Input[builtins.str]] provider_arns: The ARNs of the Cognito User Pools to use.
146
+ :param builtins.str type: The type of the authorizer. This value must be one of the following:
146
147
  - "token", for an authorizer with the caller identity embedded in an authorization token
147
148
  - "request", for an authorizer with the caller identity contained in request parameters
148
149
  """
@@ -170,7 +171,7 @@ class AuthorizerArgs:
170
171
 
171
172
  @property
172
173
  @pulumi.getter(name="parameterName")
173
- def parameter_name(self) -> str:
174
+ def parameter_name(self) -> builtins.str:
174
175
  """
175
176
  parameterName is the name of the header or query parameter containing the authorization
176
177
  token. Must be "Unused" for multiple identity sources.
@@ -178,24 +179,24 @@ class AuthorizerArgs:
178
179
  return pulumi.get(self, "parameter_name")
179
180
 
180
181
  @parameter_name.setter
181
- def parameter_name(self, value: str):
182
+ def parameter_name(self, value: builtins.str):
182
183
  pulumi.set(self, "parameter_name", value)
183
184
 
184
185
  @property
185
186
  @pulumi.getter(name="authType")
186
- def auth_type(self) -> Optional[str]:
187
+ def auth_type(self) -> Optional[builtins.str]:
187
188
  """
188
189
  Specifies the authorization mechanism for the client. Typical values are "oauth2" or "custom".
189
190
  """
190
191
  return pulumi.get(self, "auth_type")
191
192
 
192
193
  @auth_type.setter
193
- def auth_type(self, value: Optional[str]):
194
+ def auth_type(self, value: Optional[builtins.str]):
194
195
  pulumi.set(self, "auth_type", value)
195
196
 
196
197
  @property
197
198
  @pulumi.getter(name="authorizerName")
198
- def authorizer_name(self) -> Optional[str]:
199
+ def authorizer_name(self) -> Optional[builtins.str]:
199
200
  """
200
201
  The name for the Authorizer to be referenced as. This must be unique for each unique
201
202
  authorizer within the API. If no name if specified, a name will be generated for you.
@@ -203,12 +204,12 @@ class AuthorizerArgs:
203
204
  return pulumi.get(self, "authorizer_name")
204
205
 
205
206
  @authorizer_name.setter
206
- def authorizer_name(self, value: Optional[str]):
207
+ def authorizer_name(self, value: Optional[builtins.str]):
207
208
  pulumi.set(self, "authorizer_name", value)
208
209
 
209
210
  @property
210
211
  @pulumi.getter(name="authorizerResultTtlInSeconds")
211
- def authorizer_result_ttl_in_seconds(self) -> Optional[float]:
212
+ def authorizer_result_ttl_in_seconds(self) -> Optional[builtins.float]:
212
213
  """
213
214
  The number of seconds during which the resulting IAM policy is cached. Default is 300s. You
214
215
  can set this value to 0 to disable caching. Max value is 3600s. Note - if you are sharing an
@@ -218,7 +219,7 @@ class AuthorizerArgs:
218
219
  return pulumi.get(self, "authorizer_result_ttl_in_seconds")
219
220
 
220
221
  @authorizer_result_ttl_in_seconds.setter
221
- def authorizer_result_ttl_in_seconds(self, value: Optional[float]):
222
+ def authorizer_result_ttl_in_seconds(self, value: Optional[builtins.float]):
222
223
  pulumi.set(self, "authorizer_result_ttl_in_seconds", value)
223
224
 
224
225
  @property
@@ -235,7 +236,7 @@ class AuthorizerArgs:
235
236
 
236
237
  @property
237
238
  @pulumi.getter(name="identitySource")
238
- def identity_source(self) -> Optional[Sequence[str]]:
239
+ def identity_source(self) -> Optional[Sequence[builtins.str]]:
239
240
  """
240
241
  List of mapping expressions of the request parameters as the identity source. This indicates
241
242
  where in the request identity information is expected. Applicable for the authorizer of the
@@ -245,12 +246,12 @@ class AuthorizerArgs:
245
246
  return pulumi.get(self, "identity_source")
246
247
 
247
248
  @identity_source.setter
248
- def identity_source(self, value: Optional[Sequence[str]]):
249
+ def identity_source(self, value: Optional[Sequence[builtins.str]]):
249
250
  pulumi.set(self, "identity_source", value)
250
251
 
251
252
  @property
252
253
  @pulumi.getter(name="identityValidationExpression")
253
- def identity_validation_expression(self) -> Optional[str]:
254
+ def identity_validation_expression(self) -> Optional[builtins.str]:
254
255
  """
255
256
  A regular expression for validating the token as the incoming identity. It only invokes the
256
257
  authorizer's lambda if there is a match, else it will return a 401. This does not apply to
@@ -259,12 +260,12 @@ class AuthorizerArgs:
259
260
  return pulumi.get(self, "identity_validation_expression")
260
261
 
261
262
  @identity_validation_expression.setter
262
- def identity_validation_expression(self, value: Optional[str]):
263
+ def identity_validation_expression(self, value: Optional[builtins.str]):
263
264
  pulumi.set(self, "identity_validation_expression", value)
264
265
 
265
266
  @property
266
267
  @pulumi.getter(name="methodsToAuthorize")
267
- def methods_to_authorize(self) -> Optional[Sequence[str]]:
268
+ def methods_to_authorize(self) -> Optional[Sequence[builtins.str]]:
268
269
  """
269
270
  For method authorization, you can define resource servers and custom scopes by specifying the
270
271
  "resource-server/scope". e.g. ["com.hamuta.movies/drama.view",
@@ -275,12 +276,12 @@ class AuthorizerArgs:
275
276
  return pulumi.get(self, "methods_to_authorize")
276
277
 
277
278
  @methods_to_authorize.setter
278
- def methods_to_authorize(self, value: Optional[Sequence[str]]):
279
+ def methods_to_authorize(self, value: Optional[Sequence[builtins.str]]):
279
280
  pulumi.set(self, "methods_to_authorize", value)
280
281
 
281
282
  @property
282
283
  @pulumi.getter(name="parameterLocation")
283
- def parameter_location(self) -> Optional[str]:
284
+ def parameter_location(self) -> Optional[builtins.str]:
284
285
  """
285
286
  Defines where in the request API Gateway should look for identity information. The value must
286
287
  be "header" or "query". If there are multiple identity sources, the value must be "header".
@@ -288,24 +289,24 @@ class AuthorizerArgs:
288
289
  return pulumi.get(self, "parameter_location")
289
290
 
290
291
  @parameter_location.setter
291
- def parameter_location(self, value: Optional[str]):
292
+ def parameter_location(self, value: Optional[builtins.str]):
292
293
  pulumi.set(self, "parameter_location", value)
293
294
 
294
295
  @property
295
296
  @pulumi.getter(name="providerARNs")
296
- def provider_arns(self) -> Optional[Sequence[pulumi.Input[str]]]:
297
+ def provider_arns(self) -> Optional[Sequence[pulumi.Input[builtins.str]]]:
297
298
  """
298
299
  The ARNs of the Cognito User Pools to use.
299
300
  """
300
301
  return pulumi.get(self, "provider_arns")
301
302
 
302
303
  @provider_arns.setter
303
- def provider_arns(self, value: Optional[Sequence[pulumi.Input[str]]]):
304
+ def provider_arns(self, value: Optional[Sequence[pulumi.Input[builtins.str]]]):
304
305
  pulumi.set(self, "provider_arns", value)
305
306
 
306
307
  @property
307
308
  @pulumi.getter
308
- def type(self) -> Optional[str]:
309
+ def type(self) -> Optional[builtins.str]:
309
310
  """
310
311
  The type of the authorizer. This value must be one of the following:
311
312
  - "token", for an authorizer with the caller identity embedded in an authorization token
@@ -314,22 +315,22 @@ class AuthorizerArgs:
314
315
  return pulumi.get(self, "type")
315
316
 
316
317
  @type.setter
317
- def type(self, value: Optional[str]):
318
+ def type(self, value: Optional[builtins.str]):
318
319
  pulumi.set(self, "type", value)
319
320
 
320
321
 
321
322
  if not MYPY:
322
323
  class RequiredParameterArgsDict(TypedDict):
323
- in_: NotRequired[pulumi.Input[str]]
324
- name: NotRequired[pulumi.Input[str]]
324
+ in_: NotRequired[pulumi.Input[builtins.str]]
325
+ name: NotRequired[pulumi.Input[builtins.str]]
325
326
  elif False:
326
327
  RequiredParameterArgsDict: TypeAlias = Mapping[str, Any]
327
328
 
328
329
  @pulumi.input_type
329
330
  class RequiredParameterArgs:
330
331
  def __init__(__self__, *,
331
- in_: Optional[pulumi.Input[str]] = None,
332
- name: Optional[pulumi.Input[str]] = None):
332
+ in_: Optional[pulumi.Input[builtins.str]] = None,
333
+ name: Optional[pulumi.Input[builtins.str]] = None):
333
334
  if in_ is not None:
334
335
  pulumi.set(__self__, "in_", in_)
335
336
  if name is not None:
@@ -337,20 +338,20 @@ class RequiredParameterArgs:
337
338
 
338
339
  @property
339
340
  @pulumi.getter(name="in")
340
- def in_(self) -> Optional[pulumi.Input[str]]:
341
+ def in_(self) -> Optional[pulumi.Input[builtins.str]]:
341
342
  return pulumi.get(self, "in_")
342
343
 
343
344
  @in_.setter
344
- def in_(self, value: Optional[pulumi.Input[str]]):
345
+ def in_(self, value: Optional[pulumi.Input[builtins.str]]):
345
346
  pulumi.set(self, "in_", value)
346
347
 
347
348
  @property
348
349
  @pulumi.getter
349
- def name(self) -> Optional[pulumi.Input[str]]:
350
+ def name(self) -> Optional[pulumi.Input[builtins.str]]:
350
351
  return pulumi.get(self, "name")
351
352
 
352
353
  @name.setter
353
- def name(self, value: Optional[pulumi.Input[str]]):
354
+ def name(self, value: Optional[pulumi.Input[builtins.str]]):
354
355
  pulumi.set(self, "name", value)
355
356
 
356
357
 
@@ -361,12 +362,12 @@ if not MYPY:
361
362
  have an incoming path that they match against. However, destinations are determined by the kind
362
363
  of the route.
363
364
  """
364
- path: str
365
+ path: builtins.str
365
366
  """
366
367
  The path on the API that will serve this route. If not prefixed with `/`,
367
368
  then a `/` will be added automatically to the beginning.
368
369
  """
369
- api_key_required: NotRequired[bool]
370
+ api_key_required: NotRequired[builtins.bool]
370
371
  """
371
372
  If true, an API key will be required for this route. The source for the API Key can be set at
372
373
  the API level and by default, the source will be the HEADER.
@@ -376,7 +377,7 @@ if not MYPY:
376
377
  Authorizers allows you to define Lambda authorizers be applied for authorization when the
377
378
  the route is called.
378
379
  """
379
- content_type: NotRequired[str]
380
+ content_type: NotRequired[builtins.str]
380
381
  """
381
382
  The `content-type` to serve the file as. Only valid when `localPath` points to a file. If
382
383
  `localPath` points to a directory, the content types for all files will be inferred.
@@ -389,17 +390,17 @@ if not MYPY:
389
390
  """
390
391
  A Lambda function which will handle the route for the given path and method.
391
392
  """
392
- iam_auth_enabled: NotRequired[bool]
393
+ iam_auth_enabled: NotRequired[builtins.bool]
393
394
  """
394
395
  By default, the route method auth type is set to `NONE`. If true, the auth type will be
395
396
  set to `AWS_IAM`.
396
397
  """
397
- index: NotRequired[Union[str, bool]]
398
+ index: NotRequired[Union[builtins.str, builtins.bool]]
398
399
  """
399
400
  By default a `localPath` hosting static content will also serve 'index.html' in response to a request on a directory.
400
401
  To disable this pass `false` or supply a new index document name.
401
402
  """
402
- local_path: NotRequired[str]
403
+ local_path: NotRequired[builtins.str]
403
404
  """
404
405
  The local path on disk to create static S3 resources for. Files will be uploaded into S3
405
406
  objects, and directories will be recursively walked into.
@@ -428,15 +429,15 @@ elif False:
428
429
  @pulumi.input_type
429
430
  class RouteArgs:
430
431
  def __init__(__self__, *,
431
- path: str,
432
- api_key_required: Optional[bool] = None,
432
+ path: builtins.str,
433
+ api_key_required: Optional[builtins.bool] = None,
433
434
  authorizers: Optional[Sequence['AuthorizerArgs']] = None,
434
- content_type: Optional[str] = None,
435
+ content_type: Optional[builtins.str] = None,
435
436
  data: Optional[Any] = None,
436
437
  event_handler: Optional[pulumi.Input['pulumi_aws.lambda_.Function']] = None,
437
- iam_auth_enabled: Optional[bool] = None,
438
- index: Optional[Union[str, bool]] = None,
439
- local_path: Optional[str] = None,
438
+ iam_auth_enabled: Optional[builtins.bool] = None,
439
+ index: Optional[Union[builtins.str, builtins.bool]] = None,
440
+ local_path: Optional[builtins.str] = None,
440
441
  method: Optional['Method'] = None,
441
442
  request_validator: Optional['RequestValidator'] = None,
442
443
  required_parameters: Optional[Sequence['RequiredParameterArgs']] = None,
@@ -446,21 +447,21 @@ class RouteArgs:
446
447
  have an incoming path that they match against. However, destinations are determined by the kind
447
448
  of the route.
448
449
 
449
- :param str path: The path on the API that will serve this route. If not prefixed with `/`,
450
+ :param builtins.str path: The path on the API that will serve this route. If not prefixed with `/`,
450
451
  then a `/` will be added automatically to the beginning.
451
- :param bool api_key_required: If true, an API key will be required for this route. The source for the API Key can be set at
452
+ :param builtins.bool api_key_required: If true, an API key will be required for this route. The source for the API Key can be set at
452
453
  the API level and by default, the source will be the HEADER.
453
454
  :param Sequence['AuthorizerArgs'] authorizers: Authorizers allows you to define Lambda authorizers be applied for authorization when the
454
455
  the route is called.
455
- :param str content_type: The `content-type` to serve the file as. Only valid when `localPath` points to a file. If
456
+ :param builtins.str content_type: The `content-type` to serve the file as. Only valid when `localPath` points to a file. If
456
457
  `localPath` points to a directory, the content types for all files will be inferred.
457
458
  :param Any data: A raw Swagger object to include verbatim in the integration for this path.
458
459
  :param pulumi.Input['pulumi_aws.lambda_.Function'] event_handler: A Lambda function which will handle the route for the given path and method.
459
- :param bool iam_auth_enabled: By default, the route method auth type is set to `NONE`. If true, the auth type will be
460
+ :param builtins.bool iam_auth_enabled: By default, the route method auth type is set to `NONE`. If true, the auth type will be
460
461
  set to `AWS_IAM`.
461
- :param Union[str, bool] index: By default a `localPath` hosting static content will also serve 'index.html' in response to a request on a directory.
462
+ :param Union[builtins.str, builtins.bool] index: By default a `localPath` hosting static content will also serve 'index.html' in response to a request on a directory.
462
463
  To disable this pass `false` or supply a new index document name.
463
- :param str local_path: The local path on disk to create static S3 resources for. Files will be uploaded into S3
464
+ :param builtins.str local_path: The local path on disk to create static S3 resources for. Files will be uploaded into S3
464
465
  objects, and directories will be recursively walked into.
465
466
  :param 'Method' method: The REST method of the route to match. Only valid with `eventHandler` or `data` routes.
466
467
  :param 'RequestValidator' request_validator: Request Validator specifies the validator to use at the method level. This will override anything
@@ -497,7 +498,7 @@ class RouteArgs:
497
498
 
498
499
  @property
499
500
  @pulumi.getter
500
- def path(self) -> str:
501
+ def path(self) -> builtins.str:
501
502
  """
502
503
  The path on the API that will serve this route. If not prefixed with `/`,
503
504
  then a `/` will be added automatically to the beginning.
@@ -505,12 +506,12 @@ class RouteArgs:
505
506
  return pulumi.get(self, "path")
506
507
 
507
508
  @path.setter
508
- def path(self, value: str):
509
+ def path(self, value: builtins.str):
509
510
  pulumi.set(self, "path", value)
510
511
 
511
512
  @property
512
513
  @pulumi.getter(name="apiKeyRequired")
513
- def api_key_required(self) -> Optional[bool]:
514
+ def api_key_required(self) -> Optional[builtins.bool]:
514
515
  """
515
516
  If true, an API key will be required for this route. The source for the API Key can be set at
516
517
  the API level and by default, the source will be the HEADER.
@@ -518,7 +519,7 @@ class RouteArgs:
518
519
  return pulumi.get(self, "api_key_required")
519
520
 
520
521
  @api_key_required.setter
521
- def api_key_required(self, value: Optional[bool]):
522
+ def api_key_required(self, value: Optional[builtins.bool]):
522
523
  pulumi.set(self, "api_key_required", value)
523
524
 
524
525
  @property
@@ -536,7 +537,7 @@ class RouteArgs:
536
537
 
537
538
  @property
538
539
  @pulumi.getter(name="contentType")
539
- def content_type(self) -> Optional[str]:
540
+ def content_type(self) -> Optional[builtins.str]:
540
541
  """
541
542
  The `content-type` to serve the file as. Only valid when `localPath` points to a file. If
542
543
  `localPath` points to a directory, the content types for all files will be inferred.
@@ -544,7 +545,7 @@ class RouteArgs:
544
545
  return pulumi.get(self, "content_type")
545
546
 
546
547
  @content_type.setter
547
- def content_type(self, value: Optional[str]):
548
+ def content_type(self, value: Optional[builtins.str]):
548
549
  pulumi.set(self, "content_type", value)
549
550
 
550
551
  @property
@@ -573,7 +574,7 @@ class RouteArgs:
573
574
 
574
575
  @property
575
576
  @pulumi.getter(name="iamAuthEnabled")
576
- def iam_auth_enabled(self) -> Optional[bool]:
577
+ def iam_auth_enabled(self) -> Optional[builtins.bool]:
577
578
  """
578
579
  By default, the route method auth type is set to `NONE`. If true, the auth type will be
579
580
  set to `AWS_IAM`.
@@ -581,12 +582,12 @@ class RouteArgs:
581
582
  return pulumi.get(self, "iam_auth_enabled")
582
583
 
583
584
  @iam_auth_enabled.setter
584
- def iam_auth_enabled(self, value: Optional[bool]):
585
+ def iam_auth_enabled(self, value: Optional[builtins.bool]):
585
586
  pulumi.set(self, "iam_auth_enabled", value)
586
587
 
587
588
  @property
588
589
  @pulumi.getter
589
- def index(self) -> Optional[Union[str, bool]]:
590
+ def index(self) -> Optional[Union[builtins.str, builtins.bool]]:
590
591
  """
591
592
  By default a `localPath` hosting static content will also serve 'index.html' in response to a request on a directory.
592
593
  To disable this pass `false` or supply a new index document name.
@@ -594,12 +595,12 @@ class RouteArgs:
594
595
  return pulumi.get(self, "index")
595
596
 
596
597
  @index.setter
597
- def index(self, value: Optional[Union[str, bool]]):
598
+ def index(self, value: Optional[Union[builtins.str, builtins.bool]]):
598
599
  pulumi.set(self, "index", value)
599
600
 
600
601
  @property
601
602
  @pulumi.getter(name="localPath")
602
- def local_path(self) -> Optional[str]:
603
+ def local_path(self) -> Optional[builtins.str]:
603
604
  """
604
605
  The local path on disk to create static S3 resources for. Files will be uploaded into S3
605
606
  objects, and directories will be recursively walked into.
@@ -607,7 +608,7 @@ class RouteArgs:
607
608
  return pulumi.get(self, "local_path")
608
609
 
609
610
  @local_path.setter
610
- def local_path(self, value: Optional[str]):
611
+ def local_path(self, value: Optional[builtins.str]):
611
612
  pulumi.set(self, "local_path", value)
612
613
 
613
614
  @property
@@ -663,18 +664,18 @@ class RouteArgs:
663
664
 
664
665
  if not MYPY:
665
666
  class SwaggerGatewayResponseArgsDict(TypedDict):
666
- response_parameters: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
667
- response_templates: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
668
- status_code: NotRequired[pulumi.Input[float]]
667
+ response_parameters: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]
668
+ response_templates: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]
669
+ status_code: NotRequired[pulumi.Input[builtins.float]]
669
670
  elif False:
670
671
  SwaggerGatewayResponseArgsDict: TypeAlias = Mapping[str, Any]
671
672
 
672
673
  @pulumi.input_type
673
674
  class SwaggerGatewayResponseArgs:
674
675
  def __init__(__self__, *,
675
- response_parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
676
- response_templates: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
677
- status_code: Optional[pulumi.Input[float]] = None):
676
+ response_parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
677
+ response_templates: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
678
+ status_code: Optional[pulumi.Input[builtins.float]] = None):
678
679
  if response_parameters is not None:
679
680
  pulumi.set(__self__, "response_parameters", response_parameters)
680
681
  if response_templates is not None:
@@ -684,29 +685,29 @@ class SwaggerGatewayResponseArgs:
684
685
 
685
686
  @property
686
687
  @pulumi.getter(name="responseParameters")
687
- def response_parameters(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
688
+ def response_parameters(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
688
689
  return pulumi.get(self, "response_parameters")
689
690
 
690
691
  @response_parameters.setter
691
- def response_parameters(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
692
+ def response_parameters(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
692
693
  pulumi.set(self, "response_parameters", value)
693
694
 
694
695
  @property
695
696
  @pulumi.getter(name="responseTemplates")
696
- def response_templates(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
697
+ def response_templates(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
697
698
  return pulumi.get(self, "response_templates")
698
699
 
699
700
  @response_templates.setter
700
- def response_templates(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
701
+ def response_templates(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
701
702
  pulumi.set(self, "response_templates", value)
702
703
 
703
704
  @property
704
705
  @pulumi.getter(name="statusCode")
705
- def status_code(self) -> Optional[pulumi.Input[float]]:
706
+ def status_code(self) -> Optional[pulumi.Input[builtins.float]]:
706
707
  return pulumi.get(self, "status_code")
707
708
 
708
709
  @status_code.setter
709
- def status_code(self, value: Optional[pulumi.Input[float]]):
710
+ def status_code(self, value: Optional[pulumi.Input[builtins.float]]):
710
711
  pulumi.set(self, "status_code", value)
711
712
 
712
713
 
@@ -735,7 +736,7 @@ if not MYPY:
735
736
  * `mock`: for integrating the API method request with API Gateway as a "loop-back" endpoint
736
737
  without invoking any backend.
737
738
  """
738
- connection_id: NotRequired[pulumi.Input[str]]
739
+ connection_id: NotRequired[pulumi.Input[builtins.str]]
739
740
  """
740
741
  The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined,
741
742
  otherwise.
@@ -746,7 +747,7 @@ if not MYPY:
746
747
  for connections through the public routable internet or `VPC_LINK` for private connections
747
748
  between API Gateway and a network load balancer in a VPC. The default value is `INTERNET`.
748
749
  """
749
- http_method: NotRequired[pulumi.Input[str]]
750
+ http_method: NotRequired[pulumi.Input[builtins.str]]
750
751
  """
751
752
  Specifies the integration's HTTP method type. Currently, the only supported type is 'ANY'.
752
753
  """
@@ -773,7 +774,7 @@ if not MYPY:
773
774
 
774
775
  Defaults to `WHEN_NO_MATCH` if unspecified.
775
776
  """
776
- uri: NotRequired[pulumi.Input[str]]
777
+ uri: NotRequired[pulumi.Input[builtins.str]]
777
778
  """
778
779
  Specifies Uniform Resource Identifier (URI) of the integration endpoint.
779
780
 
@@ -802,11 +803,11 @@ elif False:
802
803
  class TargetArgs:
803
804
  def __init__(__self__, *,
804
805
  type: pulumi.Input['IntegrationType'],
805
- connection_id: Optional[pulumi.Input[str]] = None,
806
+ connection_id: Optional[pulumi.Input[builtins.str]] = None,
806
807
  connection_type: Optional[pulumi.Input['IntegrationConnectionType']] = None,
807
- http_method: Optional[pulumi.Input[str]] = None,
808
+ http_method: Optional[pulumi.Input[builtins.str]] = None,
808
809
  passthrough_behaviour: Optional[pulumi.Input['IntegrationPassthroughBehavior']] = None,
809
- uri: Optional[pulumi.Input[str]] = None):
810
+ uri: Optional[pulumi.Input[builtins.str]] = None):
810
811
  """
811
812
  :param pulumi.Input['IntegrationType'] type: Specifies an API method integration type. The valid value is one of the following:
812
813
 
@@ -828,12 +829,12 @@ class TargetArgs:
828
829
 
829
830
  * `mock`: for integrating the API method request with API Gateway as a "loop-back" endpoint
830
831
  without invoking any backend.
831
- :param pulumi.Input[str] connection_id: The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined,
832
+ :param pulumi.Input[builtins.str] connection_id: The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined,
832
833
  otherwise.
833
834
  :param pulumi.Input['IntegrationConnectionType'] connection_type: The type of the network connection to the integration endpoint. The valid value is `INTERNET`
834
835
  for connections through the public routable internet or `VPC_LINK` for private connections
835
836
  between API Gateway and a network load balancer in a VPC. The default value is `INTERNET`.
836
- :param pulumi.Input[str] http_method: Specifies the integration's HTTP method type. Currently, the only supported type is 'ANY'.
837
+ :param pulumi.Input[builtins.str] http_method: Specifies the integration's HTTP method type. Currently, the only supported type is 'ANY'.
837
838
  :param pulumi.Input['IntegrationPassthroughBehavior'] passthrough_behaviour: Specifies how the method request body of an unmapped content type will be passed through the
838
839
  integration request to the back end without transformation.
839
840
 
@@ -854,7 +855,7 @@ class TargetArgs:
854
855
  integration request.
855
856
 
856
857
  Defaults to `WHEN_NO_MATCH` if unspecified.
857
- :param pulumi.Input[str] uri: Specifies Uniform Resource Identifier (URI) of the integration endpoint.
858
+ :param pulumi.Input[builtins.str] uri: Specifies Uniform Resource Identifier (URI) of the integration endpoint.
858
859
 
859
860
  For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL
860
861
  according to the RFC-3986 specification, for either standard integration, where
@@ -919,7 +920,7 @@ class TargetArgs:
919
920
 
920
921
  @property
921
922
  @pulumi.getter(name="connectionId")
922
- def connection_id(self) -> Optional[pulumi.Input[str]]:
923
+ def connection_id(self) -> Optional[pulumi.Input[builtins.str]]:
923
924
  """
924
925
  The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined,
925
926
  otherwise.
@@ -927,7 +928,7 @@ class TargetArgs:
927
928
  return pulumi.get(self, "connection_id")
928
929
 
929
930
  @connection_id.setter
930
- def connection_id(self, value: Optional[pulumi.Input[str]]):
931
+ def connection_id(self, value: Optional[pulumi.Input[builtins.str]]):
931
932
  pulumi.set(self, "connection_id", value)
932
933
 
933
934
  @property
@@ -946,14 +947,14 @@ class TargetArgs:
946
947
 
947
948
  @property
948
949
  @pulumi.getter(name="httpMethod")
949
- def http_method(self) -> Optional[pulumi.Input[str]]:
950
+ def http_method(self) -> Optional[pulumi.Input[builtins.str]]:
950
951
  """
951
952
  Specifies the integration's HTTP method type. Currently, the only supported type is 'ANY'.
952
953
  """
953
954
  return pulumi.get(self, "http_method")
954
955
 
955
956
  @http_method.setter
956
- def http_method(self, value: Optional[pulumi.Input[str]]):
957
+ def http_method(self, value: Optional[pulumi.Input[builtins.str]]):
957
958
  pulumi.set(self, "http_method", value)
958
959
 
959
960
  @property
@@ -989,7 +990,7 @@ class TargetArgs:
989
990
 
990
991
  @property
991
992
  @pulumi.getter
992
- def uri(self) -> Optional[pulumi.Input[str]]:
993
+ def uri(self) -> Optional[pulumi.Input[builtins.str]]:
993
994
  """
994
995
  Specifies Uniform Resource Identifier (URI) of the integration endpoint.
995
996
 
@@ -1014,7 +1015,7 @@ class TargetArgs:
1014
1015
  return pulumi.get(self, "uri")
1015
1016
 
1016
1017
  @uri.setter
1017
- def uri(self, value: Optional[pulumi.Input[str]]):
1018
+ def uri(self, value: Optional[pulumi.Input[builtins.str]]):
1018
1019
  pulumi.set(self, "uri", value)
1019
1020
 
1020
1021
 
@@ -2,6 +2,7 @@
2
2
  # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
+ import builtins
5
6
  import copy
6
7
  import warnings
7
8
  import sys
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "aws-apigateway",
4
- "version": "2.7.0-alpha.1743528615"
4
+ "version": "2.7.0-alpha.1743596039"
5
5
  }
@@ -2,6 +2,7 @@
2
2
  # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
+ import builtins
5
6
  import copy
6
7
  import warnings
7
8
  import sys
@@ -23,25 +24,25 @@ __all__ = ['RestAPIArgs', 'RestAPI']
23
24
  class RestAPIArgs:
24
25
  def __init__(__self__, *,
25
26
  api_key_source: Optional['APIKeySource'] = None,
26
- binary_media_types: Optional[Sequence[pulumi.Input[str]]] = None,
27
- description: Optional[pulumi.Input[str]] = None,
28
- disable_execute_api_endpoint: Optional[pulumi.Input[bool]] = None,
27
+ binary_media_types: Optional[Sequence[pulumi.Input[builtins.str]]] = None,
28
+ description: Optional[pulumi.Input[builtins.str]] = None,
29
+ disable_execute_api_endpoint: Optional[pulumi.Input[builtins.bool]] = None,
29
30
  gateway_responses: Optional[Mapping[str, pulumi.Input['SwaggerGatewayResponseArgs']]] = None,
30
31
  request_validator: Optional['RequestValidator'] = None,
31
32
  routes: Optional[Sequence['RouteArgs']] = None,
32
- stage_name: Optional[pulumi.Input[str]] = None,
33
+ stage_name: Optional[pulumi.Input[builtins.str]] = None,
33
34
  static_routes_bucket: Optional[pulumi.Input['pulumi_aws.s3.Bucket']] = None,
34
- swagger_string: Optional[pulumi.Input[str]] = None,
35
- tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
35
+ swagger_string: Optional[pulumi.Input[builtins.str]] = None,
36
+ tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None):
36
37
  """
37
38
  The set of arguments for constructing a RestAPI resource.
38
39
  :param 'APIKeySource' api_key_source: The source for the apikey. This can either be a HEADER or AUTHORIZER. If `apiKeyRequired` is
39
40
  set to true on a route, and this is not defined the value will default to HEADER.
40
- :param Sequence[pulumi.Input[str]] binary_media_types: List of binary media types supported by the REST API. By default, the REST API supports only UTF-8-encoded text payloads.
41
+ :param Sequence[pulumi.Input[builtins.str]] binary_media_types: List of binary media types supported by the REST API. By default, the REST API supports only UTF-8-encoded text payloads.
41
42
  If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-binary-media-types extension.
42
43
  If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value.
43
- :param pulumi.Input[str] description: Description of the REST API.
44
- :param pulumi.Input[bool] disable_execute_api_endpoint: Whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke
44
+ :param pulumi.Input[builtins.str] description: Description of the REST API.
45
+ :param pulumi.Input[builtins.bool] disable_execute_api_endpoint: Whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke
45
46
  your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that
46
47
  clients use a custom domain name to invoke your API, disable the default endpoint. Defaults to false.
47
48
  :param Mapping[str, pulumi.Input['SwaggerGatewayResponseArgs']] gateway_responses: Define custom gateway responses for the API. This can be used to properly enable
@@ -52,15 +53,15 @@ class RestAPIArgs:
52
53
  specification for the API.
53
54
 
54
55
  Either `swaggerString` or `routes` must be specified.
55
- :param pulumi.Input[str] stage_name: The stage name for your API. This will get added as a base path to your API url.
56
+ :param pulumi.Input[builtins.str] stage_name: The stage name for your API. This will get added as a base path to your API url.
56
57
  :param pulumi.Input['pulumi_aws.s3.Bucket'] static_routes_bucket: Bucket to use for placing resources for static resources. If not provided a default one will
57
58
  be created on your behalf if any `StaticRoute`s are provided.
58
- :param pulumi.Input[str] swagger_string: A Swagger specification already in string form to use to initialize the APIGateway. Note
59
+ :param pulumi.Input[builtins.str] swagger_string: A Swagger specification already in string form to use to initialize the APIGateway. Note
59
60
  that you must manually provide permission for any route targets to be invoked by API Gateway
60
61
  when using `swaggerString`.
61
62
 
62
63
  Either `swaggerString` or `routes` must be specified.
63
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: 'Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present,
64
+ :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] tags: 'Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present,
64
65
  tags with matching keys will overwrite those defined at the provider-level.
65
66
  """
66
67
  if api_key_source is not None:
@@ -101,7 +102,7 @@ class RestAPIArgs:
101
102
 
102
103
  @property
103
104
  @pulumi.getter(name="binaryMediaTypes")
104
- def binary_media_types(self) -> Optional[Sequence[pulumi.Input[str]]]:
105
+ def binary_media_types(self) -> Optional[Sequence[pulumi.Input[builtins.str]]]:
105
106
  """
106
107
  List of binary media types supported by the REST API. By default, the REST API supports only UTF-8-encoded text payloads.
107
108
  If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-binary-media-types extension.
@@ -110,24 +111,24 @@ class RestAPIArgs:
110
111
  return pulumi.get(self, "binary_media_types")
111
112
 
112
113
  @binary_media_types.setter
113
- def binary_media_types(self, value: Optional[Sequence[pulumi.Input[str]]]):
114
+ def binary_media_types(self, value: Optional[Sequence[pulumi.Input[builtins.str]]]):
114
115
  pulumi.set(self, "binary_media_types", value)
115
116
 
116
117
  @property
117
118
  @pulumi.getter
118
- def description(self) -> Optional[pulumi.Input[str]]:
119
+ def description(self) -> Optional[pulumi.Input[builtins.str]]:
119
120
  """
120
121
  Description of the REST API.
121
122
  """
122
123
  return pulumi.get(self, "description")
123
124
 
124
125
  @description.setter
125
- def description(self, value: Optional[pulumi.Input[str]]):
126
+ def description(self, value: Optional[pulumi.Input[builtins.str]]):
126
127
  pulumi.set(self, "description", value)
127
128
 
128
129
  @property
129
130
  @pulumi.getter(name="disableExecuteApiEndpoint")
130
- def disable_execute_api_endpoint(self) -> Optional[pulumi.Input[bool]]:
131
+ def disable_execute_api_endpoint(self) -> Optional[pulumi.Input[builtins.bool]]:
131
132
  """
132
133
  Whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke
133
134
  your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that
@@ -136,7 +137,7 @@ class RestAPIArgs:
136
137
  return pulumi.get(self, "disable_execute_api_endpoint")
137
138
 
138
139
  @disable_execute_api_endpoint.setter
139
- def disable_execute_api_endpoint(self, value: Optional[pulumi.Input[bool]]):
140
+ def disable_execute_api_endpoint(self, value: Optional[pulumi.Input[builtins.bool]]):
140
141
  pulumi.set(self, "disable_execute_api_endpoint", value)
141
142
 
142
143
  @property
@@ -182,14 +183,14 @@ class RestAPIArgs:
182
183
 
183
184
  @property
184
185
  @pulumi.getter(name="stageName")
185
- def stage_name(self) -> Optional[pulumi.Input[str]]:
186
+ def stage_name(self) -> Optional[pulumi.Input[builtins.str]]:
186
187
  """
187
188
  The stage name for your API. This will get added as a base path to your API url.
188
189
  """
189
190
  return pulumi.get(self, "stage_name")
190
191
 
191
192
  @stage_name.setter
192
- def stage_name(self, value: Optional[pulumi.Input[str]]):
193
+ def stage_name(self, value: Optional[pulumi.Input[builtins.str]]):
193
194
  pulumi.set(self, "stage_name", value)
194
195
 
195
196
  @property
@@ -207,7 +208,7 @@ class RestAPIArgs:
207
208
 
208
209
  @property
209
210
  @pulumi.getter(name="swaggerString")
210
- def swagger_string(self) -> Optional[pulumi.Input[str]]:
211
+ def swagger_string(self) -> Optional[pulumi.Input[builtins.str]]:
211
212
  """
212
213
  A Swagger specification already in string form to use to initialize the APIGateway. Note
213
214
  that you must manually provide permission for any route targets to be invoked by API Gateway
@@ -218,12 +219,12 @@ class RestAPIArgs:
218
219
  return pulumi.get(self, "swagger_string")
219
220
 
220
221
  @swagger_string.setter
221
- def swagger_string(self, value: Optional[pulumi.Input[str]]):
222
+ def swagger_string(self, value: Optional[pulumi.Input[builtins.str]]):
222
223
  pulumi.set(self, "swagger_string", value)
223
224
 
224
225
  @property
225
226
  @pulumi.getter
226
- def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
227
+ def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
227
228
  """
228
229
  'Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present,
229
230
  tags with matching keys will overwrite those defined at the provider-level.
@@ -231,7 +232,7 @@ class RestAPIArgs:
231
232
  return pulumi.get(self, "tags")
232
233
 
233
234
  @tags.setter
234
- def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
235
+ def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
235
236
  pulumi.set(self, "tags", value)
236
237
 
237
238
 
@@ -241,16 +242,16 @@ class RestAPI(pulumi.ComponentResource):
241
242
  resource_name: str,
242
243
  opts: Optional[pulumi.ResourceOptions] = None,
243
244
  api_key_source: Optional['APIKeySource'] = None,
244
- binary_media_types: Optional[Sequence[pulumi.Input[str]]] = None,
245
- description: Optional[pulumi.Input[str]] = None,
246
- disable_execute_api_endpoint: Optional[pulumi.Input[bool]] = None,
245
+ binary_media_types: Optional[Sequence[pulumi.Input[builtins.str]]] = None,
246
+ description: Optional[pulumi.Input[builtins.str]] = None,
247
+ disable_execute_api_endpoint: Optional[pulumi.Input[builtins.bool]] = None,
247
248
  gateway_responses: Optional[Mapping[str, pulumi.Input[Union['SwaggerGatewayResponseArgs', 'SwaggerGatewayResponseArgsDict']]]] = None,
248
249
  request_validator: Optional['RequestValidator'] = None,
249
250
  routes: Optional[Sequence[Union['RouteArgs', 'RouteArgsDict']]] = None,
250
- stage_name: Optional[pulumi.Input[str]] = None,
251
+ stage_name: Optional[pulumi.Input[builtins.str]] = None,
251
252
  static_routes_bucket: Optional[pulumi.Input['pulumi_aws.s3.Bucket']] = None,
252
- swagger_string: Optional[pulumi.Input[str]] = None,
253
- tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
253
+ swagger_string: Optional[pulumi.Input[builtins.str]] = None,
254
+ tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
254
255
  __props__=None):
255
256
  """
256
257
  The RestAPI component offers a simple interface for creating a fully functional API Gateway REST API. The
@@ -262,11 +263,11 @@ class RestAPI(pulumi.ComponentResource):
262
263
  :param pulumi.ResourceOptions opts: Options for the resource.
263
264
  :param 'APIKeySource' api_key_source: The source for the apikey. This can either be a HEADER or AUTHORIZER. If `apiKeyRequired` is
264
265
  set to true on a route, and this is not defined the value will default to HEADER.
265
- :param Sequence[pulumi.Input[str]] binary_media_types: List of binary media types supported by the REST API. By default, the REST API supports only UTF-8-encoded text payloads.
266
+ :param Sequence[pulumi.Input[builtins.str]] binary_media_types: List of binary media types supported by the REST API. By default, the REST API supports only UTF-8-encoded text payloads.
266
267
  If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-binary-media-types extension.
267
268
  If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value.
268
- :param pulumi.Input[str] description: Description of the REST API.
269
- :param pulumi.Input[bool] disable_execute_api_endpoint: Whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke
269
+ :param pulumi.Input[builtins.str] description: Description of the REST API.
270
+ :param pulumi.Input[builtins.bool] disable_execute_api_endpoint: Whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke
270
271
  your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that
271
272
  clients use a custom domain name to invoke your API, disable the default endpoint. Defaults to false.
272
273
  :param Mapping[str, pulumi.Input[Union['SwaggerGatewayResponseArgs', 'SwaggerGatewayResponseArgsDict']]] gateway_responses: Define custom gateway responses for the API. This can be used to properly enable
@@ -277,15 +278,15 @@ class RestAPI(pulumi.ComponentResource):
277
278
  specification for the API.
278
279
 
279
280
  Either `swaggerString` or `routes` must be specified.
280
- :param pulumi.Input[str] stage_name: The stage name for your API. This will get added as a base path to your API url.
281
+ :param pulumi.Input[builtins.str] stage_name: The stage name for your API. This will get added as a base path to your API url.
281
282
  :param pulumi.Input['pulumi_aws.s3.Bucket'] static_routes_bucket: Bucket to use for placing resources for static resources. If not provided a default one will
282
283
  be created on your behalf if any `StaticRoute`s are provided.
283
- :param pulumi.Input[str] swagger_string: A Swagger specification already in string form to use to initialize the APIGateway. Note
284
+ :param pulumi.Input[builtins.str] swagger_string: A Swagger specification already in string form to use to initialize the APIGateway. Note
284
285
  that you must manually provide permission for any route targets to be invoked by API Gateway
285
286
  when using `swaggerString`.
286
287
 
287
288
  Either `swaggerString` or `routes` must be specified.
288
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: 'Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present,
289
+ :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] tags: 'Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present,
289
290
  tags with matching keys will overwrite those defined at the provider-level.
290
291
  """
291
292
  ...
@@ -316,16 +317,16 @@ class RestAPI(pulumi.ComponentResource):
316
317
  resource_name: str,
317
318
  opts: Optional[pulumi.ResourceOptions] = None,
318
319
  api_key_source: Optional['APIKeySource'] = None,
319
- binary_media_types: Optional[Sequence[pulumi.Input[str]]] = None,
320
- description: Optional[pulumi.Input[str]] = None,
321
- disable_execute_api_endpoint: Optional[pulumi.Input[bool]] = None,
320
+ binary_media_types: Optional[Sequence[pulumi.Input[builtins.str]]] = None,
321
+ description: Optional[pulumi.Input[builtins.str]] = None,
322
+ disable_execute_api_endpoint: Optional[pulumi.Input[builtins.bool]] = None,
322
323
  gateway_responses: Optional[Mapping[str, pulumi.Input[Union['SwaggerGatewayResponseArgs', 'SwaggerGatewayResponseArgsDict']]]] = None,
323
324
  request_validator: Optional['RequestValidator'] = None,
324
325
  routes: Optional[Sequence[Union['RouteArgs', 'RouteArgsDict']]] = None,
325
- stage_name: Optional[pulumi.Input[str]] = None,
326
+ stage_name: Optional[pulumi.Input[builtins.str]] = None,
326
327
  static_routes_bucket: Optional[pulumi.Input['pulumi_aws.s3.Bucket']] = None,
327
- swagger_string: Optional[pulumi.Input[str]] = None,
328
- tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
328
+ swagger_string: Optional[pulumi.Input[builtins.str]] = None,
329
+ tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
329
330
  __props__=None):
330
331
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
331
332
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -394,7 +395,7 @@ class RestAPI(pulumi.ComponentResource):
394
395
 
395
396
  @property
396
397
  @pulumi.getter
397
- def url(self) -> pulumi.Output[str]:
398
+ def url(self) -> pulumi.Output[builtins.str]:
398
399
  """
399
400
  The URL where the Rest API is exposed.
400
401
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi_aws_apigateway
3
- Version: 2.7.0a1743528615
3
+ Version: 2.7.0a1743596039
4
4
  Summary: Pulumi Amazon Web Services (AWS) API Gateway Components.
5
5
  License: Apache-2.0
6
6
  Project-URL: Repository, https://github.com/pulumi/pulumi-aws-apigateway
@@ -0,0 +1,12 @@
1
+ pulumi_aws_apigateway/__init__.py,sha256=de7yPkrlX_cJc9hPR7esIlwEAt2bce80bGkoN3j7nQg,734
2
+ pulumi_aws_apigateway/_enums.py,sha256=PZA08fO4xszbd8K-xGd-U3pzXwGDrJdUUH-RL_c02Oo,1215
3
+ pulumi_aws_apigateway/_inputs.py,sha256=kqPMB3ituvhTaVHQb9oZ3JYdTNNu_CfOKbPnKo3fHSw,51562
4
+ pulumi_aws_apigateway/_utilities.py,sha256=66uLGQDI1oMFOI3Fe5igAphtexWhcSLDyuVW50jW3ik,10789
5
+ pulumi_aws_apigateway/provider.py,sha256=AURAlqiIBZ04nA6PJe-QtCeWnUYaFQwHms00thgFKD4,2946
6
+ pulumi_aws_apigateway/pulumi-plugin.json,sha256=0CWHNt5Iow2271of9XbKeG77dSRnSNV-Y4TiYMk4jPE,90
7
+ pulumi_aws_apigateway/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ pulumi_aws_apigateway/rest_api.py,sha256=qqxAh8BI4-ossx02ePD9pXj_qUdt0br-q6bvSAG5j7k,22051
9
+ pulumi_aws_apigateway-2.7.0a1743596039.dist-info/METADATA,sha256=kZD73ToZwXdB3-eVAxt-eRx0l_Qob6UP7lsDAKLCTQg,3007
10
+ pulumi_aws_apigateway-2.7.0a1743596039.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
11
+ pulumi_aws_apigateway-2.7.0a1743596039.dist-info/top_level.txt,sha256=YY2wCK-Qy789n9y-8rwjASV5533Pg_6X5fH0hoDSif4,22
12
+ pulumi_aws_apigateway-2.7.0a1743596039.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- pulumi_aws_apigateway/__init__.py,sha256=RoNAMO6Va0tdiVpaxvabQ6QS0rOoyfdaVzpOkhAQwgw,718
2
- pulumi_aws_apigateway/_enums.py,sha256=GY4S2fT72PJRKnJVxT6iWOXIvcAfj1LDSmDeQ3Q7jEI,1129
3
- pulumi_aws_apigateway/_inputs.py,sha256=DTrhUjN8IQMuSSiCDC1HUkPrn8fmF0D6q8scI3TG2JQ,50466
4
- pulumi_aws_apigateway/_utilities.py,sha256=66uLGQDI1oMFOI3Fe5igAphtexWhcSLDyuVW50jW3ik,10789
5
- pulumi_aws_apigateway/provider.py,sha256=cbIA3-ZKMVPg4z8NlnICkc7I-f-m7J9fGz_kOcZtsJs,2930
6
- pulumi_aws_apigateway/pulumi-plugin.json,sha256=FxO9OqvNrIkvkS1PkxW2A0QujfDJELtQ-2mB7-AL4G4,90
7
- pulumi_aws_apigateway/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- pulumi_aws_apigateway/rest_api.py,sha256=EbFtw0QW6SuGufSlLTdlh2gVHHCHEu6rp6pATE0YVQU,21648
9
- pulumi_aws_apigateway-2.7.0a1743528615.dist-info/METADATA,sha256=_x2nxgssc9_1nfjGdSKFQhPaZeg7X-g11kE54z2V56A,3007
10
- pulumi_aws_apigateway-2.7.0a1743528615.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
11
- pulumi_aws_apigateway-2.7.0a1743528615.dist-info/top_level.txt,sha256=YY2wCK-Qy789n9y-8rwjASV5533Pg_6X5fH0hoDSif4,22
12
- pulumi_aws_apigateway-2.7.0a1743528615.dist-info/RECORD,,