-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update/Refresh API gateway bodyS3Location #4421
Comments
Hi @cheelav, I'm not really sure what you are asking. If you would like to request a feature, please describe the feature you want, why you want it, and how you think it could be implemented. It really looks like you are trying to figure out how a system works. My recommendation is to look at our Gitter room or StackOverflow. However, if you would like to get an answer here, please provide more information on your issue. |
Noah,
I am creating apigateway and uploading swagger doc with bodyS3Location.
After initial creation, I want to refresh/update gateway with latest
swagger docs. I did not find any method to do that.
I have looked at CfnRestApi and RestApi. Attaching typescript here.
Thanks
Vasantha
…On Tue, Oct 8, 2019 at 3:10 PM Noah Litov ***@***.***> wrote:
Hi @cheelav <https://github.com/cheelav>,
I'm not really sure what you are asking. If you would like to request a
feature, please describe the feature you want, why you want it, and how you
think it could be implemented.
It really looks like you are trying to figure out how a system works. My
recommendation is to look at our Gitter
<https://gitter.im/awslabs/aws-cdk> room or StackOverflow. However, if
you would like to get an answer here, please provide more information on
your issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4421?email_source=notifications&email_token=AKCJVJPQXDOUEC37GJCZHQ3QNTLKFA5CNFSM4I6VORX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAVIWEY#issuecomment-539659027>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKCJVJNQ5XLI74G45RNMBBLQNTLKFANCNFSM4I6VORXQ>
.
|
Hey @cheelav were you going to post some ts? I can certainly look into this more, but I would need to see some code to really understand what you mean |
import cdk = require('@aws-cdk/core');
import apigw = require('@aws-cdk/aws-apigateway');
import { EndpointType } from '@aws-cdk/aws-apigateway';
import iam = require('@aws-cdk/aws-iam');
import { PolicyStatement, PolicyDocument } from '@aws-cdk/aws-iam';
export class ApiCdkStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const api = new apigw.RestApi(this, 'AuthApi', {
restApiName: 'AuthApi',
endpointTypes: [EndpointType.REGIONAL],
parameters: {
endpointConfigurationTypes: EndpointType.REGIONAL
}
});
api.root.addMethod('ANY');
//const cfnApi = api.node.findChild('Default') as apigw.CfnRestApi;
const cfnApi = api.node.defaultChild as apigw.CfnRestApi;
cfnApi.parameters = {
endpointConfigurationTypes: EndpointType.REGIONAL,
ignore: 'documentation'
}
cfnApi.endpointConfiguration = {
types: [EndpointType.REGIONAL]
};
cfnApi.bodyS3Location = {
bucket: 'swagger-bucket',
key: 'Test-AWS-APIGateway.postman_collection.json-Swagger'
}
}
} |
Co-authored-by: Niranjan Jayakar <nija@amazon.com> Ability to import an OpenAPI definition to an API Gateway Rest API. The definition can either be a file as a local asset, inline JSON or a key in an S3 bucket. closes #4421
Co-authored-by: Niranjan Jayakar <nija@amazon.com> Ability to import an OpenAPI definition to an API Gateway Rest API. The definition can either be a file as a local asset, inline JSON or a key in an S3 bucket. closes aws#4421
I have created API gateway and importing swagger doc with bodyS3Location property. Not able to refresh gateway after uploading new swagger docs.
Use Case
Proposed Solution
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: