@pulumi/aws-native 0.81.0 → 0.82.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.
- package/apigateway/account.d.ts +3 -3
- package/apigateway/account.js +1 -1
- package/apigateway/authorizer.d.ts +17 -17
- package/apigateway/authorizer.js +1 -1
- package/apigateway/deployment.d.ts +11 -11
- package/apigateway/deployment.js +1 -1
- package/apigateway/documentationPart.d.ts +7 -7
- package/apigateway/documentationPart.js +1 -1
- package/apigateway/documentationVersion.d.ts +7 -7
- package/apigateway/documentationVersion.js +1 -1
- package/apigateway/getAccount.d.ts +3 -3
- package/apigateway/getAccount.js +2 -2
- package/apigateway/getAuthorizer.d.ts +11 -11
- package/apigateway/getAuthorizer.js +2 -2
- package/apigateway/getDeployment.d.ts +5 -5
- package/apigateway/getDeployment.js +2 -2
- package/apigateway/getDocumentationPart.d.ts +5 -5
- package/apigateway/getDocumentationPart.js +2 -2
- package/apigateway/getDocumentationVersion.d.ts +7 -7
- package/apigateway/getDocumentationVersion.js +2 -2
- package/apigateway/getMethod.d.ts +19 -18
- package/apigateway/getMethod.js +2 -2
- package/apigateway/getMethod.js.map +1 -1
- package/apigateway/getModel.d.ts +10 -8
- package/apigateway/getModel.js +2 -2
- package/apigateway/getModel.js.map +1 -1
- package/apigateway/getResource.d.ts +4 -4
- package/apigateway/getResource.js +2 -2
- package/apigateway/getRestApi.d.ts +31 -2
- package/apigateway/getRestApi.js +4 -2
- package/apigateway/getRestApi.js.map +1 -1
- package/apigateway/getStage.d.ts +18 -18
- package/apigateway/getStage.js +2 -2
- package/apigateway/getUsagePlanKey.d.ts +2 -2
- package/apigateway/getUsagePlanKey.js +2 -2
- package/apigateway/method.d.ts +29 -27
- package/apigateway/method.js +1 -1
- package/apigateway/method.js.map +1 -1
- package/apigateway/model.d.ts +13 -11
- package/apigateway/model.js +1 -1
- package/apigateway/model.js.map +1 -1
- package/apigateway/resource.d.ts +3 -3
- package/apigateway/resource.js +1 -1
- package/apigateway/restApi.d.ts +102 -1
- package/apigateway/restApi.js +2 -1
- package/apigateway/restApi.js.map +1 -1
- package/apigateway/stage.d.ts +29 -29
- package/apigateway/stage.js +1 -1
- package/apigateway/usagePlanKey.d.ts +7 -7
- package/apigateway/usagePlanKey.js +1 -1
- package/appconfig/application.d.ts +22 -3
- package/appconfig/application.js +2 -5
- package/appconfig/application.js.map +1 -1
- package/appconfig/configurationProfile.d.ts +2 -0
- package/appconfig/configurationProfile.js +2 -0
- package/appconfig/configurationProfile.js.map +1 -1
- package/appconfig/getApplication.d.ts +21 -3
- package/appconfig/getApplication.js +1 -1
- package/appconfig/getApplication.js.map +1 -1
- package/appconfig/getConfigurationProfile.d.ts +1 -0
- package/appconfig/getConfigurationProfile.js.map +1 -1
- package/appsync/functionConfiguration.d.ts +91 -4
- package/appsync/functionConfiguration.js +1 -6
- package/appsync/functionConfiguration.js.map +1 -1
- package/appsync/getFunctionConfiguration.d.ts +46 -8
- package/appsync/getFunctionConfiguration.js +3 -3
- package/appsync/getFunctionConfiguration.js.map +1 -1
- package/cognito/getIdentityPool.d.ts +3 -4
- package/cognito/getIdentityPool.js.map +1 -1
- package/cognito/getUserPool.d.ts +3 -4
- package/cognito/getUserPool.js +1 -1
- package/cognito/getUserPool.js.map +1 -1
- package/cognito/getUserPoolGroup.d.ts +4 -3
- package/cognito/getUserPoolGroup.js +2 -1
- package/cognito/getUserPoolGroup.js.map +1 -1
- package/cognito/identityPool.d.ts +0 -8
- package/cognito/identityPool.js +0 -2
- package/cognito/identityPool.js.map +1 -1
- package/cognito/userPool.d.ts +1 -3
- package/cognito/userPool.js +2 -5
- package/cognito/userPool.js.map +1 -1
- package/cognito/userPoolClient.d.ts +0 -3
- package/cognito/userPoolClient.js +0 -5
- package/cognito/userPoolClient.js.map +1 -1
- package/cognito/userPoolGroup.d.ts +0 -3
- package/cognito/userPoolGroup.js +0 -5
- package/cognito/userPoolGroup.js.map +1 -1
- package/connect/contactFlowModule.d.ts +3 -4
- package/connect/getContactFlowModule.d.ts +2 -3
- package/customerprofiles/domain.d.ts +5 -0
- package/customerprofiles/domain.js +6 -0
- package/customerprofiles/domain.js.map +1 -1
- package/customerprofiles/getDomain.d.ts +3 -0
- package/customerprofiles/getDomain.js.map +1 -1
- package/ec2/getSubnet.d.ts +8 -0
- package/ec2/getSubnet.js.map +1 -1
- package/ec2/subnet.d.ts +16 -0
- package/ec2/subnet.js +4 -0
- package/ec2/subnet.js.map +1 -1
- package/entityresolution/getIdMappingWorkflow.d.ts +36 -0
- package/entityresolution/getIdMappingWorkflow.js +25 -0
- package/entityresolution/getIdMappingWorkflow.js.map +1 -0
- package/entityresolution/idMappingWorkflow.d.ts +64 -0
- package/entityresolution/idMappingWorkflow.js +91 -0
- package/entityresolution/idMappingWorkflow.js.map +1 -0
- package/entityresolution/index.d.ts +6 -0
- package/entityresolution/index.js +8 -1
- package/entityresolution/index.js.map +1 -1
- package/events/getRule.d.ts +5 -37
- package/events/getRule.js +1 -1
- package/events/getRule.js.map +1 -1
- package/events/rule.d.ts +4 -58
- package/events/rule.js +1 -1
- package/events/rule.js.map +1 -1
- package/gamelift/fleet.d.ts +8 -0
- package/gamelift/fleet.js +3 -1
- package/gamelift/fleet.js.map +1 -1
- package/iam/getGroup.d.ts +20 -3
- package/iam/getGroup.js +1 -1
- package/iam/getGroup.js.map +1 -1
- package/iam/group.d.ts +27 -3
- package/iam/group.js +0 -5
- package/iam/group.js.map +1 -1
- package/iot/getJobTemplate.d.ts +0 -4
- package/iot/getJobTemplate.js.map +1 -1
- package/iot/getPolicy.d.ts +2 -0
- package/iot/getPolicy.js.map +1 -1
- package/iot/jobTemplate.js +1 -1
- package/iot/jobTemplate.js.map +1 -1
- package/iot/policy.d.ts +4 -0
- package/iot/policy.js +2 -0
- package/iot/policy.js.map +1 -1
- package/lambda/function.d.ts +8 -0
- package/lambda/function.js +2 -0
- package/lambda/function.js.map +1 -1
- package/msk/getReplicator.d.ts +40 -0
- package/msk/getReplicator.js +25 -0
- package/msk/getReplicator.js.map +1 -0
- package/msk/index.d.ts +6 -0
- package/msk/index.js +8 -1
- package/msk/index.js.map +1 -1
- package/msk/replicator.d.ts +95 -0
- package/msk/replicator.js +81 -0
- package/msk/replicator.js.map +1 -0
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/quicksight/analysis.d.ts +2 -0
- package/quicksight/analysis.js +2 -0
- package/quicksight/analysis.js.map +1 -1
- package/quicksight/dashboard.d.ts +2 -0
- package/quicksight/dashboard.js +2 -0
- package/quicksight/dashboard.js.map +1 -1
- package/quicksight/template.d.ts +2 -0
- package/quicksight/template.js +2 -0
- package/quicksight/template.js.map +1 -1
- package/s3/bucket.d.ts +2 -114
- package/s3/bucket.js.map +1 -1
- package/s3/getBucket.d.ts +4 -62
- package/s3/getBucket.js +1 -1
- package/s3/getBucket.js.map +1 -1
- package/servicecatalogappregistry/getAttributeGroupAssociation.d.ts +4 -3
- package/servicecatalogappregistry/getAttributeGroupAssociation.js +2 -1
- package/servicecatalogappregistry/getAttributeGroupAssociation.js.map +1 -1
- package/servicecatalogappregistry/getResourceAssociation.d.ts +13 -3
- package/servicecatalogappregistry/getResourceAssociation.js +3 -1
- package/servicecatalogappregistry/getResourceAssociation.js.map +1 -1
- package/sns/getTopic.d.ts +4 -0
- package/sns/getTopic.js.map +1 -1
- package/sns/topic.d.ts +8 -0
- package/sns/topic.js +2 -0
- package/sns/topic.js.map +1 -1
- package/sqs/getQueuePolicy.d.ts +4 -4
- package/sqs/getQueuePolicy.js +2 -2
- package/sqs/queuePolicy.d.ts +5 -5
- package/sqs/queuePolicy.js +1 -1
- package/types/enums/apigateway/index.d.ts +12 -8
- package/types/enums/apigateway/index.js.map +1 -1
- package/types/enums/connect/index.d.ts +0 -16
- package/types/enums/connect/index.js +1 -9
- package/types/enums/connect/index.js.map +1 -1
- package/types/enums/customerprofiles/index.d.ts +35 -0
- package/types/enums/customerprofiles/index.js +23 -1
- package/types/enums/customerprofiles/index.js.map +1 -1
- package/types/enums/entityresolution/index.d.ts +4 -0
- package/types/enums/entityresolution/index.js +4 -1
- package/types/enums/entityresolution/index.js.map +1 -1
- package/types/enums/events/index.d.ts +0 -8
- package/types/enums/events/index.js +1 -5
- package/types/enums/events/index.js.map +1 -1
- package/types/enums/gamelift/index.d.ts +7 -0
- package/types/enums/gamelift/index.js +4 -1
- package/types/enums/gamelift/index.js.map +1 -1
- package/types/enums/msk/index.d.ts +11 -0
- package/types/enums/msk/index.js +8 -1
- package/types/enums/msk/index.js.map +1 -1
- package/types/enums/quicksight/index.d.ts +15 -0
- package/types/enums/quicksight/index.js +18 -6
- package/types/enums/quicksight/index.js.map +1 -1
- package/types/enums/s3/index.d.ts +0 -209
- package/types/enums/s3/index.js +1 -137
- package/types/enums/s3/index.js.map +1 -1
- package/types/input.d.ts +529 -466
- package/types/output.d.ts +550 -466
package/apigateway/method.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as inputs from "../types/input";
|
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
import * as enums from "../types/enums";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* The ``AWS::ApiGateway::Method`` resource creates API Gateway methods that define the parameters and body that clients must send in their requests.
|
|
7
7
|
*/
|
|
8
8
|
export declare class Method extends pulumi.CustomResource {
|
|
9
9
|
/**
|
|
@@ -21,55 +21,56 @@ export declare class Method extends pulumi.CustomResource {
|
|
|
21
21
|
*/
|
|
22
22
|
static isInstance(obj: any): obj is Method;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* A boolean flag specifying whether a valid ApiKey is required to invoke this method.
|
|
25
25
|
*/
|
|
26
26
|
readonly apiKeyRequired: pulumi.Output<boolean | undefined>;
|
|
27
27
|
/**
|
|
28
|
-
* A list of authorization scopes configured on the method.
|
|
28
|
+
* A list of authorization scopes configured on the method. The scopes are used with a ``COGNITO_USER_POOLS`` authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.
|
|
29
29
|
*/
|
|
30
30
|
readonly authorizationScopes: pulumi.Output<string[] | undefined>;
|
|
31
31
|
/**
|
|
32
|
-
* The method's authorization type.
|
|
32
|
+
* The method's authorization type. This parameter is required. For valid values, see [Method](https://docs.aws.amazon.com/apigateway/latest/api/API_Method.html) in the *API Gateway API Reference*.
|
|
33
|
+
* If you specify the ``AuthorizerId`` property, specify ``CUSTOM`` or ``COGNITO_USER_POOLS`` for this property.
|
|
33
34
|
*/
|
|
34
35
|
readonly authorizationType: pulumi.Output<enums.apigateway.MethodAuthorizationType | undefined>;
|
|
35
36
|
/**
|
|
36
|
-
* The identifier of
|
|
37
|
+
* The identifier of an authorizer to use on this method. The method's authorization type must be ``CUSTOM`` or ``COGNITO_USER_POOLS``.
|
|
37
38
|
*/
|
|
38
39
|
readonly authorizerId: pulumi.Output<string | undefined>;
|
|
39
40
|
/**
|
|
40
|
-
* The
|
|
41
|
+
* The method's HTTP verb.
|
|
41
42
|
*/
|
|
42
43
|
readonly httpMethod: pulumi.Output<string>;
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
+
* Represents an ``HTTP``, ``HTTP_PROXY``, ``AWS``, ``AWS_PROXY``, or Mock integration.
|
|
45
46
|
*/
|
|
46
47
|
readonly integration: pulumi.Output<outputs.apigateway.MethodIntegration | undefined>;
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
+
* Gets a method response associated with a given HTTP status code.
|
|
49
50
|
*/
|
|
50
51
|
readonly methodResponses: pulumi.Output<outputs.apigateway.MethodResponse[] | undefined>;
|
|
51
52
|
/**
|
|
52
|
-
* A friendly operation
|
|
53
|
+
* A human-friendly operation identifier for the method. For example, you can assign the ``operationName`` of ``ListPets`` for the ``GET /pets`` method in the ``PetStore`` example.
|
|
53
54
|
*/
|
|
54
55
|
readonly operationName: pulumi.Output<string | undefined>;
|
|
55
56
|
/**
|
|
56
|
-
*
|
|
57
|
+
* A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).
|
|
57
58
|
*/
|
|
58
59
|
readonly requestModels: pulumi.Output<any | undefined>;
|
|
59
60
|
/**
|
|
60
|
-
*
|
|
61
|
+
* A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of ``method.request.{location}.{name}``, where ``location`` is ``querystring``, ``path``, or ``header`` and ``name`` is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (``true``) or optional (``false``). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.
|
|
61
62
|
*/
|
|
62
63
|
readonly requestParameters: pulumi.Output<any | undefined>;
|
|
63
64
|
/**
|
|
64
|
-
* The
|
|
65
|
+
* The identifier of a RequestValidator for request validation.
|
|
65
66
|
*/
|
|
66
67
|
readonly requestValidatorId: pulumi.Output<string | undefined>;
|
|
67
68
|
/**
|
|
68
|
-
* The
|
|
69
|
+
* The Resource identifier for the MethodResponse resource.
|
|
69
70
|
*/
|
|
70
71
|
readonly resourceId: pulumi.Output<string>;
|
|
71
72
|
/**
|
|
72
|
-
* The
|
|
73
|
+
* The string identifier of the associated RestApi.
|
|
73
74
|
*/
|
|
74
75
|
readonly restApiId: pulumi.Output<string>;
|
|
75
76
|
/**
|
|
@@ -86,55 +87,56 @@ export declare class Method extends pulumi.CustomResource {
|
|
|
86
87
|
*/
|
|
87
88
|
export interface MethodArgs {
|
|
88
89
|
/**
|
|
89
|
-
*
|
|
90
|
+
* A boolean flag specifying whether a valid ApiKey is required to invoke this method.
|
|
90
91
|
*/
|
|
91
92
|
apiKeyRequired?: pulumi.Input<boolean>;
|
|
92
93
|
/**
|
|
93
|
-
* A list of authorization scopes configured on the method.
|
|
94
|
+
* A list of authorization scopes configured on the method. The scopes are used with a ``COGNITO_USER_POOLS`` authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.
|
|
94
95
|
*/
|
|
95
96
|
authorizationScopes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
96
97
|
/**
|
|
97
|
-
* The method's authorization type.
|
|
98
|
+
* The method's authorization type. This parameter is required. For valid values, see [Method](https://docs.aws.amazon.com/apigateway/latest/api/API_Method.html) in the *API Gateway API Reference*.
|
|
99
|
+
* If you specify the ``AuthorizerId`` property, specify ``CUSTOM`` or ``COGNITO_USER_POOLS`` for this property.
|
|
98
100
|
*/
|
|
99
101
|
authorizationType?: pulumi.Input<enums.apigateway.MethodAuthorizationType>;
|
|
100
102
|
/**
|
|
101
|
-
* The identifier of
|
|
103
|
+
* The identifier of an authorizer to use on this method. The method's authorization type must be ``CUSTOM`` or ``COGNITO_USER_POOLS``.
|
|
102
104
|
*/
|
|
103
105
|
authorizerId?: pulumi.Input<string>;
|
|
104
106
|
/**
|
|
105
|
-
* The
|
|
107
|
+
* The method's HTTP verb.
|
|
106
108
|
*/
|
|
107
109
|
httpMethod: pulumi.Input<string>;
|
|
108
110
|
/**
|
|
109
|
-
*
|
|
111
|
+
* Represents an ``HTTP``, ``HTTP_PROXY``, ``AWS``, ``AWS_PROXY``, or Mock integration.
|
|
110
112
|
*/
|
|
111
113
|
integration?: pulumi.Input<inputs.apigateway.MethodIntegrationArgs>;
|
|
112
114
|
/**
|
|
113
|
-
*
|
|
115
|
+
* Gets a method response associated with a given HTTP status code.
|
|
114
116
|
*/
|
|
115
117
|
methodResponses?: pulumi.Input<pulumi.Input<inputs.apigateway.MethodResponseArgs>[]>;
|
|
116
118
|
/**
|
|
117
|
-
* A friendly operation
|
|
119
|
+
* A human-friendly operation identifier for the method. For example, you can assign the ``operationName`` of ``ListPets`` for the ``GET /pets`` method in the ``PetStore`` example.
|
|
118
120
|
*/
|
|
119
121
|
operationName?: pulumi.Input<string>;
|
|
120
122
|
/**
|
|
121
|
-
*
|
|
123
|
+
* A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).
|
|
122
124
|
*/
|
|
123
125
|
requestModels?: any;
|
|
124
126
|
/**
|
|
125
|
-
*
|
|
127
|
+
* A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of ``method.request.{location}.{name}``, where ``location`` is ``querystring``, ``path``, or ``header`` and ``name`` is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (``true``) or optional (``false``). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.
|
|
126
128
|
*/
|
|
127
129
|
requestParameters?: any;
|
|
128
130
|
/**
|
|
129
|
-
* The
|
|
131
|
+
* The identifier of a RequestValidator for request validation.
|
|
130
132
|
*/
|
|
131
133
|
requestValidatorId?: pulumi.Input<string>;
|
|
132
134
|
/**
|
|
133
|
-
* The
|
|
135
|
+
* The Resource identifier for the MethodResponse resource.
|
|
134
136
|
*/
|
|
135
137
|
resourceId: pulumi.Input<string>;
|
|
136
138
|
/**
|
|
137
|
-
* The
|
|
139
|
+
* The string identifier of the associated RestApi.
|
|
138
140
|
*/
|
|
139
141
|
restApiId: pulumi.Input<string>;
|
|
140
142
|
}
|
package/apigateway/method.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.Method = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The ``AWS::ApiGateway::Method`` resource creates API Gateway methods that define the parameters and body that clients must send in their requests.
|
|
10
10
|
*/
|
|
11
11
|
class Method extends pulumi.CustomResource {
|
|
12
12
|
/**
|
package/apigateway/method.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.js","sourceRoot":"","sources":["../../apigateway/method.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;AAEjF,y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AS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACxD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,gBAAgB,GAAG,EAAE,gBAAgB,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,CAAC,EAAE,CAAC;QACzF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QACnD,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AArIL,wBAsIC;AAzHG,gBAAgB;AACO,mBAAY,GAAG,8BAA8B,CAAC"}
|
package/apigateway/model.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The ``AWS::ApiGateway::Model`` resource defines the structure of a request or response payload for an API method.
|
|
4
4
|
*/
|
|
5
5
|
export declare class Model extends pulumi.CustomResource {
|
|
6
6
|
/**
|
|
@@ -18,23 +18,24 @@ export declare class Model extends pulumi.CustomResource {
|
|
|
18
18
|
*/
|
|
19
19
|
static isInstance(obj: any): obj is Model;
|
|
20
20
|
/**
|
|
21
|
-
* The content
|
|
21
|
+
* The content-type for the model.
|
|
22
22
|
*/
|
|
23
23
|
readonly contentType: pulumi.Output<string | undefined>;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The description of the model.
|
|
26
26
|
*/
|
|
27
27
|
readonly description: pulumi.Output<string | undefined>;
|
|
28
28
|
/**
|
|
29
|
-
* A name for the model. If you don't specify a name,
|
|
29
|
+
* A name for the model. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the model name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).
|
|
30
|
+
* If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
|
|
30
31
|
*/
|
|
31
32
|
readonly name: pulumi.Output<string | undefined>;
|
|
32
33
|
/**
|
|
33
|
-
* The
|
|
34
|
+
* The string identifier of the associated RestApi.
|
|
34
35
|
*/
|
|
35
36
|
readonly restApiId: pulumi.Output<string>;
|
|
36
37
|
/**
|
|
37
|
-
* The schema
|
|
38
|
+
* The schema for the model. For ``application/json`` models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.
|
|
38
39
|
*/
|
|
39
40
|
readonly schema: pulumi.Output<any | undefined>;
|
|
40
41
|
/**
|
|
@@ -51,23 +52,24 @@ export declare class Model extends pulumi.CustomResource {
|
|
|
51
52
|
*/
|
|
52
53
|
export interface ModelArgs {
|
|
53
54
|
/**
|
|
54
|
-
* The content
|
|
55
|
+
* The content-type for the model.
|
|
55
56
|
*/
|
|
56
57
|
contentType?: pulumi.Input<string>;
|
|
57
58
|
/**
|
|
58
|
-
*
|
|
59
|
+
* The description of the model.
|
|
59
60
|
*/
|
|
60
61
|
description?: pulumi.Input<string>;
|
|
61
62
|
/**
|
|
62
|
-
* A name for the model. If you don't specify a name,
|
|
63
|
+
* A name for the model. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the model name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).
|
|
64
|
+
* If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
|
|
63
65
|
*/
|
|
64
66
|
name?: pulumi.Input<string>;
|
|
65
67
|
/**
|
|
66
|
-
* The
|
|
68
|
+
* The string identifier of the associated RestApi.
|
|
67
69
|
*/
|
|
68
70
|
restApiId: pulumi.Input<string>;
|
|
69
71
|
/**
|
|
70
|
-
* The schema
|
|
72
|
+
* The schema for the model. For ``application/json`` models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.
|
|
71
73
|
*/
|
|
72
74
|
schema?: any;
|
|
73
75
|
}
|
package/apigateway/model.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.Model = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The ``AWS::ApiGateway::Model`` resource defines the structure of a request or response payload for an API method.
|
|
10
10
|
*/
|
|
11
11
|
class Model extends pulumi.CustomResource {
|
|
12
12
|
/**
|
package/apigateway/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../apigateway/model.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ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 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The ``AWS::ApiGateway::Resource`` resource creates a resource in an API.
|
|
4
4
|
*/
|
|
5
5
|
export declare class Resource extends pulumi.CustomResource {
|
|
6
6
|
/**
|
|
@@ -30,7 +30,7 @@ export declare class Resource extends pulumi.CustomResource {
|
|
|
30
30
|
*/
|
|
31
31
|
readonly resourceId: pulumi.Output<string>;
|
|
32
32
|
/**
|
|
33
|
-
* The
|
|
33
|
+
* The string identifier of the associated RestApi.
|
|
34
34
|
*/
|
|
35
35
|
readonly restApiId: pulumi.Output<string>;
|
|
36
36
|
/**
|
|
@@ -55,7 +55,7 @@ export interface ResourceArgs {
|
|
|
55
55
|
*/
|
|
56
56
|
pathPart: pulumi.Input<string>;
|
|
57
57
|
/**
|
|
58
|
-
* The
|
|
58
|
+
* The string identifier of the associated RestApi.
|
|
59
59
|
*/
|
|
60
60
|
restApiId: pulumi.Input<string>;
|
|
61
61
|
}
|
package/apigateway/resource.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.Resource = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The ``AWS::ApiGateway::Resource`` resource creates a resource in an API.
|
|
10
10
|
*/
|
|
11
11
|
class Resource extends pulumi.CustomResource {
|
|
12
12
|
/**
|
package/apigateway/restApi.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* The ``AWS::ApiGateway::RestApi`` resource creates a REST API. For more information, see [restapi:create](https://docs.aws.amazon.com/apigateway/latest/api/API_CreateRestApi.html) in the *Amazon API Gateway REST API Reference*.
|
|
6
|
+
* On January 1, 2016, the Swagger Specification was donated to the [OpenAPI initiative](https://docs.aws.amazon.com/https://www.openapis.org/), becoming the foundation of the OpenAPI Specification.
|
|
6
7
|
*/
|
|
7
8
|
export declare class RestApi extends pulumi.CustomResource {
|
|
8
9
|
/**
|
|
@@ -19,22 +20,72 @@ export declare class RestApi extends pulumi.CustomResource {
|
|
|
19
20
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
20
21
|
*/
|
|
21
22
|
static isInstance(obj: any): obj is RestApi;
|
|
23
|
+
/**
|
|
24
|
+
* The source of the API key for metering requests according to a usage plan. Valid values are: ``HEADER`` to read the API key from the ``X-API-Key`` header of a request. ``AUTHORIZER`` to read the API key from the ``UsageIdentifierKey`` from a custom authorizer.
|
|
25
|
+
*/
|
|
22
26
|
readonly apiKeySourceType: pulumi.Output<string | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.
|
|
29
|
+
*/
|
|
23
30
|
readonly binaryMediaTypes: pulumi.Output<string[] | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* An OpenAPI specification that defines a set of RESTful APIs in JSON format. For YAML templates, you can also provide the specification in YAML format.
|
|
33
|
+
*/
|
|
24
34
|
readonly body: pulumi.Output<any | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* The Amazon Simple Storage Service (Amazon S3) location that points to an OpenAPI file, which defines a set of RESTful APIs in JSON or YAML format.
|
|
37
|
+
*/
|
|
25
38
|
readonly bodyS3Location: pulumi.Output<outputs.apigateway.RestApiS3Location | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* The ID of the RestApi that you want to clone from.
|
|
41
|
+
*/
|
|
26
42
|
readonly cloneFrom: pulumi.Output<string | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* The description of the RestApi.
|
|
45
|
+
*/
|
|
27
46
|
readonly description: pulumi.Output<string | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies whether clients can invoke your API by using the default ``execute-api`` endpoint. By default, clients can invoke your API with the default ``https://{api_id}.execute-api.{region}.amazonaws.com`` endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint
|
|
49
|
+
*/
|
|
28
50
|
readonly disableExecuteApiEndpoint: pulumi.Output<boolean | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* A list of the endpoint types of the API. Use this property when creating an API. When importing an existing API, specify the endpoint configuration types using the ``Parameters`` property.
|
|
53
|
+
*/
|
|
29
54
|
readonly endpointConfiguration: pulumi.Output<outputs.apigateway.RestApiEndpointConfiguration | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* A query parameter to indicate whether to rollback the API update (``true``) or not (``false``) when a warning is encountered. The default value is ``false``.
|
|
57
|
+
*/
|
|
30
58
|
readonly failOnWarnings: pulumi.Output<boolean | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
|
|
61
|
+
*/
|
|
31
62
|
readonly minimumCompressionSize: pulumi.Output<number | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* This property applies only when you use OpenAPI to define your REST API. The ``Mode`` determines how API Gateway handles resource updates.
|
|
65
|
+
* Valid values are ``overwrite`` or ``merge``.
|
|
66
|
+
* For ``overwrite``, the new API definition replaces the existing one. The existing API identifier remains unchanged.
|
|
67
|
+
* For ``merge``, the new API definition is merged with the existing API.
|
|
68
|
+
* If you don't specify this property, a default value is chosen. For REST APIs created before March 29, 2021, the default is ``overwrite``. For REST APIs created after March 29, 2021, the new API definition takes precedence, but any container types such as endpoint configurations and binary media types are merged with the existing API.
|
|
69
|
+
* Use the default mode to define top-level ``RestApi`` properties in addition to using OpenAPI. Generally, it's preferred to use API Gateway's OpenAPI extensions to model these properties.
|
|
70
|
+
*/
|
|
32
71
|
readonly mode: pulumi.Output<string | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* The name of the RestApi. A name is required if the REST API is not based on an OpenAPI specification.
|
|
74
|
+
*/
|
|
33
75
|
readonly name: pulumi.Output<string | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set ``ignore=documentation`` as a ``parameters`` value, as in the AWS CLI command of ``aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'``.
|
|
78
|
+
*/
|
|
34
79
|
readonly parameters: pulumi.Output<any | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* A policy document that contains the permissions for the ``RestApi`` resource. To set the ARN for the policy, use the ``!Join`` intrinsic function with ``""`` as delimiter and values of ``"execute-api:/"`` and ``"*"``.
|
|
82
|
+
*/
|
|
35
83
|
readonly policy: pulumi.Output<any | undefined>;
|
|
36
84
|
readonly restApiId: pulumi.Output<string>;
|
|
37
85
|
readonly rootResourceId: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with ``aws:``. The tag value can be up to 256 characters.
|
|
88
|
+
*/
|
|
38
89
|
readonly tags: pulumi.Output<outputs.apigateway.RestApiTag[] | undefined>;
|
|
39
90
|
/**
|
|
40
91
|
* Create a RestApi resource with the given unique name, arguments, and options.
|
|
@@ -49,19 +100,69 @@ export declare class RestApi extends pulumi.CustomResource {
|
|
|
49
100
|
* The set of arguments for constructing a RestApi resource.
|
|
50
101
|
*/
|
|
51
102
|
export interface RestApiArgs {
|
|
103
|
+
/**
|
|
104
|
+
* The source of the API key for metering requests according to a usage plan. Valid values are: ``HEADER`` to read the API key from the ``X-API-Key`` header of a request. ``AUTHORIZER`` to read the API key from the ``UsageIdentifierKey`` from a custom authorizer.
|
|
105
|
+
*/
|
|
52
106
|
apiKeySourceType?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.
|
|
109
|
+
*/
|
|
53
110
|
binaryMediaTypes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
111
|
+
/**
|
|
112
|
+
* An OpenAPI specification that defines a set of RESTful APIs in JSON format. For YAML templates, you can also provide the specification in YAML format.
|
|
113
|
+
*/
|
|
54
114
|
body?: any;
|
|
115
|
+
/**
|
|
116
|
+
* The Amazon Simple Storage Service (Amazon S3) location that points to an OpenAPI file, which defines a set of RESTful APIs in JSON or YAML format.
|
|
117
|
+
*/
|
|
55
118
|
bodyS3Location?: pulumi.Input<inputs.apigateway.RestApiS3LocationArgs>;
|
|
119
|
+
/**
|
|
120
|
+
* The ID of the RestApi that you want to clone from.
|
|
121
|
+
*/
|
|
56
122
|
cloneFrom?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The description of the RestApi.
|
|
125
|
+
*/
|
|
57
126
|
description?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Specifies whether clients can invoke your API by using the default ``execute-api`` endpoint. By default, clients can invoke your API with the default ``https://{api_id}.execute-api.{region}.amazonaws.com`` endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint
|
|
129
|
+
*/
|
|
58
130
|
disableExecuteApiEndpoint?: pulumi.Input<boolean>;
|
|
131
|
+
/**
|
|
132
|
+
* A list of the endpoint types of the API. Use this property when creating an API. When importing an existing API, specify the endpoint configuration types using the ``Parameters`` property.
|
|
133
|
+
*/
|
|
59
134
|
endpointConfiguration?: pulumi.Input<inputs.apigateway.RestApiEndpointConfigurationArgs>;
|
|
135
|
+
/**
|
|
136
|
+
* A query parameter to indicate whether to rollback the API update (``true``) or not (``false``) when a warning is encountered. The default value is ``false``.
|
|
137
|
+
*/
|
|
60
138
|
failOnWarnings?: pulumi.Input<boolean>;
|
|
139
|
+
/**
|
|
140
|
+
* A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
|
|
141
|
+
*/
|
|
61
142
|
minimumCompressionSize?: pulumi.Input<number>;
|
|
143
|
+
/**
|
|
144
|
+
* This property applies only when you use OpenAPI to define your REST API. The ``Mode`` determines how API Gateway handles resource updates.
|
|
145
|
+
* Valid values are ``overwrite`` or ``merge``.
|
|
146
|
+
* For ``overwrite``, the new API definition replaces the existing one. The existing API identifier remains unchanged.
|
|
147
|
+
* For ``merge``, the new API definition is merged with the existing API.
|
|
148
|
+
* If you don't specify this property, a default value is chosen. For REST APIs created before March 29, 2021, the default is ``overwrite``. For REST APIs created after March 29, 2021, the new API definition takes precedence, but any container types such as endpoint configurations and binary media types are merged with the existing API.
|
|
149
|
+
* Use the default mode to define top-level ``RestApi`` properties in addition to using OpenAPI. Generally, it's preferred to use API Gateway's OpenAPI extensions to model these properties.
|
|
150
|
+
*/
|
|
62
151
|
mode?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The name of the RestApi. A name is required if the REST API is not based on an OpenAPI specification.
|
|
154
|
+
*/
|
|
63
155
|
name?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set ``ignore=documentation`` as a ``parameters`` value, as in the AWS CLI command of ``aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'``.
|
|
158
|
+
*/
|
|
64
159
|
parameters?: any;
|
|
160
|
+
/**
|
|
161
|
+
* A policy document that contains the permissions for the ``RestApi`` resource. To set the ARN for the policy, use the ``!Join`` intrinsic function with ``""`` as delimiter and values of ``"execute-api:/"`` and ``"*"``.
|
|
162
|
+
*/
|
|
65
163
|
policy?: any;
|
|
164
|
+
/**
|
|
165
|
+
* The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with ``aws:``. The tag value can be up to 256 characters.
|
|
166
|
+
*/
|
|
66
167
|
tags?: pulumi.Input<pulumi.Input<inputs.apigateway.RestApiTagArgs>[]>;
|
|
67
168
|
}
|
package/apigateway/restApi.js
CHANGED
|
@@ -6,7 +6,8 @@ exports.RestApi = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The ``AWS::ApiGateway::RestApi`` resource creates a REST API. For more information, see [restapi:create](https://docs.aws.amazon.com/apigateway/latest/api/API_CreateRestApi.html) in the *Amazon API Gateway REST API Reference*.
|
|
10
|
+
* On January 1, 2016, the Swagger Specification was donated to the [OpenAPI initiative](https://docs.aws.amazon.com/https://www.openapis.org/), becoming the foundation of the OpenAPI Specification.
|
|
10
11
|
*/
|
|
11
12
|
class RestApi extends pulumi.CustomResource {
|
|
12
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restApi.js","sourceRoot":"","sources":["../../apigateway/restApi.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"restApi.js","sourceRoot":"","sources":["../../apigateway/restApi.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;GAGG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB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