@aws-solutions-constructs/aws-apigateway-sagemakerendpoint 2.51.0 → 2.52.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/.eslintignore +3 -1
- package/.jsii +49 -4
- package/integ.config.json +7 -0
- package/lib/index.js +1 -1
- package/package.json +9 -8
- package/test/integ.apisag-additional-request-templates.js +5 -2
- package/test/integ.apisag-additional-request-templates.js.snapshot/apisag-additional-request-templates.assets.json +19 -0
- package/test/integ.apisag-additional-request-templates.js.snapshot/apisag-additional-request-templates.template.json +396 -0
- package/test/integ.apisag-additional-request-templates.js.snapshot/apisagadditionalrequesttemplatesIntegDefaultTestDeployAssert6CEA10C7.assets.json +19 -0
- package/test/integ.apisag-additional-request-templates.js.snapshot/apisagadditionalrequesttemplatesIntegDefaultTestDeployAssert6CEA10C7.template.json +36 -0
- package/test/integ.apisag-additional-request-templates.js.snapshot/cdk.out +1 -0
- package/test/integ.apisag-additional-request-templates.js.snapshot/integ.json +12 -0
- package/test/integ.apisag-additional-request-templates.js.snapshot/manifest.json +185 -0
- package/test/integ.apisag-additional-request-templates.js.snapshot/tree.json +647 -0
- package/test/integ.apisag-apigateway-sagemakerendpoint-overwrite.js +5 -2
- package/test/integ.apisag-apigateway-sagemakerendpoint-overwrite.js.snapshot/apisag-apigateway-sagemakerendpoint-overwrite.assets.json +19 -0
- package/test/integ.apisag-apigateway-sagemakerendpoint-overwrite.js.snapshot/apisag-apigateway-sagemakerendpoint-overwrite.template.json +406 -0
- package/test/integ.apisag-apigateway-sagemakerendpoint-overwrite.js.snapshot/apisagapigatewaysagemakerendpointoverwriteIntegDefaultTestDeployAssert75D4108E.assets.json +19 -0
- package/test/integ.apisag-apigateway-sagemakerendpoint-overwrite.js.snapshot/apisagapigatewaysagemakerendpointoverwriteIntegDefaultTestDeployAssert75D4108E.template.json +36 -0
- package/test/integ.apisag-apigateway-sagemakerendpoint-overwrite.js.snapshot/cdk.out +1 -0
- package/test/integ.apisag-apigateway-sagemakerendpoint-overwrite.js.snapshot/integ.json +12 -0
- package/test/integ.apisag-apigateway-sagemakerendpoint-overwrite.js.snapshot/manifest.json +185 -0
- package/test/integ.apisag-apigateway-sagemakerendpoint-overwrite.js.snapshot/tree.json +656 -0
- package/test/integ.apisag-no-overwrite.js +5 -2
- package/test/integ.apisag-no-overwrite.js.snapshot/apisag-no-overwrite.assets.json +19 -0
- package/test/integ.apisag-no-overwrite.js.snapshot/apisag-no-overwrite.template.json +395 -0
- package/test/integ.apisag-no-overwrite.js.snapshot/apisagnooverwriteIntegDefaultTestDeployAssert36F1A3A9.assets.json +19 -0
- package/test/integ.apisag-no-overwrite.js.snapshot/apisagnooverwriteIntegDefaultTestDeployAssert36F1A3A9.template.json +36 -0
- package/test/integ.apisag-no-overwrite.js.snapshot/cdk.out +1 -0
- package/test/integ.apisag-no-overwrite.js.snapshot/integ.json +12 -0
- package/test/integ.apisag-no-overwrite.js.snapshot/manifest.json +185 -0
- package/test/integ.apisag-no-overwrite.js.snapshot/tree.json +646 -0
- package/test/integ.apisag-additional-request-templates.expected.json +0 -396
- package/test/integ.apisag-apigateway-sagemakerendpoint-overwrite.expected.json +0 -406
- package/test/integ.apisag-no-overwrite.expected.json +0 -395
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Parameters": {
|
|
3
|
+
"BootstrapVersion": {
|
|
4
|
+
"Type": "AWS::SSM::Parameter::Value<String>",
|
|
5
|
+
"Default": "/cdk-bootstrap/hnb659fds/version",
|
|
6
|
+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"Rules": {
|
|
10
|
+
"CheckBootstrapVersion": {
|
|
11
|
+
"Assertions": [
|
|
12
|
+
{
|
|
13
|
+
"Assert": {
|
|
14
|
+
"Fn::Not": [
|
|
15
|
+
{
|
|
16
|
+
"Fn::Contains": [
|
|
17
|
+
[
|
|
18
|
+
"1",
|
|
19
|
+
"2",
|
|
20
|
+
"3",
|
|
21
|
+
"4",
|
|
22
|
+
"5"
|
|
23
|
+
],
|
|
24
|
+
{
|
|
25
|
+
"Ref": "BootstrapVersion"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"36.0.0"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "36.0.0",
|
|
3
|
+
"testCases": {
|
|
4
|
+
"apisag-additional-request-templates/Integ/DefaultTest": {
|
|
5
|
+
"stacks": [
|
|
6
|
+
"apisag-additional-request-templates"
|
|
7
|
+
],
|
|
8
|
+
"assertionStack": "apisag-additional-request-templates/Integ/DefaultTest/DeployAssert",
|
|
9
|
+
"assertionStackName": "apisagadditionalrequesttemplatesIntegDefaultTestDeployAssert6CEA10C7"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "36.0.0",
|
|
3
|
+
"artifacts": {
|
|
4
|
+
"apisagadditionalrequesttemplatesIntegDefaultTestDeployAssert6CEA10C7.assets": {
|
|
5
|
+
"type": "cdk:asset-manifest",
|
|
6
|
+
"properties": {
|
|
7
|
+
"file": "apisagadditionalrequesttemplatesIntegDefaultTestDeployAssert6CEA10C7.assets.json",
|
|
8
|
+
"requiresBootstrapStackVersion": 6,
|
|
9
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"apisagadditionalrequesttemplatesIntegDefaultTestDeployAssert6CEA10C7": {
|
|
13
|
+
"type": "aws:cloudformation:stack",
|
|
14
|
+
"environment": "aws://unknown-account/unknown-region",
|
|
15
|
+
"properties": {
|
|
16
|
+
"templateFile": "apisagadditionalrequesttemplatesIntegDefaultTestDeployAssert6CEA10C7.template.json",
|
|
17
|
+
"terminationProtection": false,
|
|
18
|
+
"validateOnSynth": false,
|
|
19
|
+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
|
|
20
|
+
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
|
|
21
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
|
|
22
|
+
"requiresBootstrapStackVersion": 6,
|
|
23
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
24
|
+
"additionalDependencies": [
|
|
25
|
+
"apisagadditionalrequesttemplatesIntegDefaultTestDeployAssert6CEA10C7.assets"
|
|
26
|
+
],
|
|
27
|
+
"lookupRole": {
|
|
28
|
+
"arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}",
|
|
29
|
+
"requiresBootstrapStackVersion": 8,
|
|
30
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"dependencies": [
|
|
34
|
+
"apisagadditionalrequesttemplatesIntegDefaultTestDeployAssert6CEA10C7.assets"
|
|
35
|
+
],
|
|
36
|
+
"metadata": {
|
|
37
|
+
"/apisag-additional-request-templates/Integ/DefaultTest/DeployAssert/BootstrapVersion": [
|
|
38
|
+
{
|
|
39
|
+
"type": "aws:cdk:logicalId",
|
|
40
|
+
"data": "BootstrapVersion"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"/apisag-additional-request-templates/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion": [
|
|
44
|
+
{
|
|
45
|
+
"type": "aws:cdk:logicalId",
|
|
46
|
+
"data": "CheckBootstrapVersion"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"displayName": "apisag-additional-request-templates/Integ/DefaultTest/DeployAssert"
|
|
51
|
+
},
|
|
52
|
+
"apisag-additional-request-templates.assets": {
|
|
53
|
+
"type": "cdk:asset-manifest",
|
|
54
|
+
"properties": {
|
|
55
|
+
"file": "apisag-additional-request-templates.assets.json",
|
|
56
|
+
"requiresBootstrapStackVersion": 6,
|
|
57
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"apisag-additional-request-templates": {
|
|
61
|
+
"type": "aws:cloudformation:stack",
|
|
62
|
+
"environment": "aws://unknown-account/unknown-region",
|
|
63
|
+
"properties": {
|
|
64
|
+
"templateFile": "apisag-additional-request-templates.template.json",
|
|
65
|
+
"terminationProtection": false,
|
|
66
|
+
"validateOnSynth": false,
|
|
67
|
+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
|
|
68
|
+
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
|
|
69
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/bc631b30b4ddf22810ebb537d27823dfa473ed77ad51e328a787c63622449cce.json",
|
|
70
|
+
"requiresBootstrapStackVersion": 6,
|
|
71
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
|
+
"additionalDependencies": [
|
|
73
|
+
"apisag-additional-request-templates.assets"
|
|
74
|
+
],
|
|
75
|
+
"lookupRole": {
|
|
76
|
+
"arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}",
|
|
77
|
+
"requiresBootstrapStackVersion": 8,
|
|
78
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"dependencies": [
|
|
82
|
+
"apisag-additional-request-templates.assets"
|
|
83
|
+
],
|
|
84
|
+
"metadata": {
|
|
85
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/ApiAccessLogGroup/Resource": [
|
|
86
|
+
{
|
|
87
|
+
"type": "aws:cdk:logicalId",
|
|
88
|
+
"data": "testapigatewaysagemakerendpointdefaultApiAccessLogGroupAD5E1ADF"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/RestApi/Resource": [
|
|
92
|
+
{
|
|
93
|
+
"type": "aws:cdk:logicalId",
|
|
94
|
+
"data": "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/RestApi/Deployment/Resource": [
|
|
98
|
+
{
|
|
99
|
+
"type": "aws:cdk:logicalId",
|
|
100
|
+
"data": "testapigatewaysagemakerendpointdefaultRestApiDeployment04BFEB63ab5dc870083af2a47a41af0f4ee69fff"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/RestApi/DeploymentStage.prod/Resource": [
|
|
104
|
+
{
|
|
105
|
+
"type": "aws:cdk:logicalId",
|
|
106
|
+
"data": "testapigatewaysagemakerendpointdefaultRestApiDeploymentStageprodFD1743A7"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/RestApi/Endpoint": [
|
|
110
|
+
{
|
|
111
|
+
"type": "aws:cdk:logicalId",
|
|
112
|
+
"data": "testapigatewaysagemakerendpointdefaultRestApiEndpoint1EFF6760"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/RestApi/Default/{user_id}/Resource": [
|
|
116
|
+
{
|
|
117
|
+
"type": "aws:cdk:logicalId",
|
|
118
|
+
"data": "testapigatewaysagemakerendpointdefaultRestApiuserid9952BA11"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/RestApi/Default/{user_id}/GET/Resource": [
|
|
122
|
+
{
|
|
123
|
+
"type": "aws:cdk:logicalId",
|
|
124
|
+
"data": "testapigatewaysagemakerendpointdefaultRestApiuseridGETB3BB79AA"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/RestApi/UsagePlan/Resource": [
|
|
128
|
+
{
|
|
129
|
+
"type": "aws:cdk:logicalId",
|
|
130
|
+
"data": "testapigatewaysagemakerendpointdefaultRestApiUsagePlan7C5B0716"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/RestApi/request-validator/Resource": [
|
|
134
|
+
{
|
|
135
|
+
"type": "aws:cdk:logicalId",
|
|
136
|
+
"data": "testapigatewaysagemakerendpointdefaultRestApirequestvalidator1A23C251"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/LambdaRestApiCloudWatchRole/Resource": [
|
|
140
|
+
{
|
|
141
|
+
"type": "aws:cdk:logicalId",
|
|
142
|
+
"data": "testapigatewaysagemakerendpointdefaultLambdaRestApiCloudWatchRole56EE67C8"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/LambdaRestApiAccount": [
|
|
146
|
+
{
|
|
147
|
+
"type": "aws:cdk:logicalId",
|
|
148
|
+
"data": "testapigatewaysagemakerendpointdefaultLambdaRestApiAccount6B3C7FDD"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/api-gateway-role/Resource": [
|
|
152
|
+
{
|
|
153
|
+
"type": "aws:cdk:logicalId",
|
|
154
|
+
"data": "testapigatewaysagemakerendpointdefaultapigatewayrole8EA61BE4"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"/apisag-additional-request-templates/test-apigateway-sagemakerendpoint-default/InvokeEndpointPolicy/Resource": [
|
|
158
|
+
{
|
|
159
|
+
"type": "aws:cdk:logicalId",
|
|
160
|
+
"data": "testapigatewaysagemakerendpointdefaultInvokeEndpointPolicyB835D2B2"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"/apisag-additional-request-templates/BootstrapVersion": [
|
|
164
|
+
{
|
|
165
|
+
"type": "aws:cdk:logicalId",
|
|
166
|
+
"data": "BootstrapVersion"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"/apisag-additional-request-templates/CheckBootstrapVersion": [
|
|
170
|
+
{
|
|
171
|
+
"type": "aws:cdk:logicalId",
|
|
172
|
+
"data": "CheckBootstrapVersion"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
"displayName": "apisag-additional-request-templates"
|
|
177
|
+
},
|
|
178
|
+
"Tree": {
|
|
179
|
+
"type": "cdk:tree",
|
|
180
|
+
"properties": {
|
|
181
|
+
"file": "tree.json"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|