gidimariastorm
gidimariastorm
sorry, my error
I want try to undestand why it doesn't work on python. So in #4532 you told me that it's incorrect use cfnxxx and non cfnxxx construct. I know, but It...
nope with your solution because I need an authorize_id Invalid authorizer ID specified. Setting the authorization type to CUSTOM or COGNITO_USER_POOLS requires a valid authorizer. (Service: AmazonApiGateway; Status Code: 400;...
it's the resource. inside of that there's the post method
ok. I will also send my code and my not working solution with CFN
error: APIGWAutoscalingUpdateConf/Default/autoscaling_update/POST (APIGWAutoscalingUpdateConfautoscalingupdatePOSTED942890) Invalid authorizer ID specified. Setting the authorization type to CUSTOM or COGNITO_USER_POOLS requires a valid authorizer. (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException; Request ID: 23fc5d97-5764-4446-a1d1-037e880219eb)...
in the code I created two method: GET and POST. the first one use the add_method and the other one the cfn: ``` APIGWAutoscalingUpdateConfautoscalingupdateGETD89CA2FC: Type: AWS::ApiGateway::Method Properties: HttpMethod: GET ResourceId:...
Solution founded for python: ``` auth=CfnAuthorizer(self,"authorizer", rest_api_id=apigw_autoscaling.rest_api_id, type="TOKEN", name="test", identity_source="method.request.header.AUTH", identity_validation_expression="TESTAUTH", authorizer_uri="".join(["arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/",lamdbda_api_authorizer.function_arn,"/invocations"]) ) apigw.CfnMethod(self, "POST", http_method="POST", resource_id=auto_scaling_res.resource_id, rest_api_id=auth.rest_api_id, authorization_type='CUSTOM', authorizer_id=auth.ref, api_key_required=True, integration=apigw.CfnMethod.IntegrationProperty( type="AWS_PROXY", integration_http_method='POST', uri="".join(["arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/",lamdbda_api_authorizer.function_arn,"/invocations"])) ) ``` you have to...
how? ``` const chargePath = apigw.root.addResource('charge'); chargePath.addMethod('POST', apigwLambdaIntegration, { authorizationType: apigateway.AuthorizationType.CUSTOM, authorizer: {authorizerId: authorizer.ref}, ---> how Can use this?? }); ``` ``` apigw.CfnMethod(self, "POST", http_method="POST", resource_id=auto_scaling_res.resource_id, rest_api_id=auth.rest_api_id, authorization_type='CUSTOM', authorizer_id=auth.ref, api_key_required=True,...
I know that authorizerId i'ts an attribute of IAuhtorizer :) . My question is how can I change it? it's only readonly property. So my question was: in typescript what's...