OpenAPI 사양을 사용하여 클라이언트 생성 - AWS AppConfig

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

OpenAPI 사양을 사용하여 클라이언트 생성

OpenAPI에 대한 다음 YAML 사양을 사용하여 OpenAPI 생성기와 같은 도구를 사용하여 SDK를 생성할 수 있습니다. 애플리케이션, 환경 또는 구성의 하드코딩된 값을 포함하도록 이 사양을 업데이트할 수 있습니다. 또한 경로를 추가하고 (구성 유형이 여러 개인 경우) 구성 스키마를 포함하여 SDK 클라이언트의 구성별 유형 모델을 생성할 수 있습니다. OpenAPI(스웨거라고도 함)에 대한 자세한 내용은 OpenAPI 사양을 참조하십시오.

openapi: 3.0.0 info: version: 1.0.0 title: AppConfig Agent Lambda extension API description: An API model for the AppConfig Agent Lambda extension. servers: - url: https://localhost:{port}/ variables: port: default: '2772' paths: /applications/{Application}/environments/{Environment}/configurations/{Configuration}: get: operationId: getConfiguration tags: - configuration parameters: - in: path name: Application description: The application for the configuration to get. Specify either the application name or the application ID. required: true schema: type: string - in: path name: Environment description: The environment for the configuration to get. Specify either the environment name or the environment ID. required: true schema: type: string - in: path name: Configuration description: The configuration to get. Specify either the configuration name or the configuration ID. required: true schema: type: string responses: 200: headers: ConfigurationVersion: schema: type: string content: application/octet-stream: schema: type: string format: binary description: successful config retrieval 400: description: BadRequestException content: application/text: schema: $ref: '#/components/schemas/Error' 404: description: ResourceNotFoundException content: application/text: schema: $ref: '#/components/schemas/Error' 500: description: InternalServerException content: application/text: schema: $ref: '#/components/schemas/Error' 502: description: BadGatewayException content: application/text: schema: $ref: '#/components/schemas/Error' 504: description: GatewayTimeoutException content: application/text: schema: $ref: '#/components/schemas/Error' components: schemas: Error: type: string description: The response error