@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
124 lines (123 loc) • 5.44 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides a settings of an API Gateway Documentation Part.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const exampleRestApi = new aws.apigateway.RestApi("example", {name: "example_api"});
* const example = new aws.apigateway.DocumentationPart("example", {
* location: {
* type: "METHOD",
* method: "GET",
* path: "/example",
* },
* properties: "{\"description\":\"Example description\"}",
* restApiId: exampleRestApi.id,
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import API Gateway documentation_parts using `REST-API-ID/DOC-PART-ID`. For example:
*
* ```sh
* $ pulumi import aws:apigateway/documentationPart:DocumentationPart example 5i4e1ko720/3oyy3t
* ```
*/
export declare class DocumentationPart extends pulumi.CustomResource {
/**
* Get an existing DocumentationPart resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DocumentationPartState, opts?: pulumi.CustomResourceOptions): DocumentationPart;
/**
* Returns true if the given object is an instance of DocumentationPart. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is DocumentationPart;
/**
* The DocumentationPart identifier, generated by API Gateway when the documentation part is created.
*/
readonly documentationPartId: pulumi.Output<string>;
/**
* Location of the targeted API entity of the to-be-created documentation part. See below.
*/
readonly location: pulumi.Output<outputs.apigateway.DocumentationPartLocation>;
/**
* Content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only Swagger-compliant key-value pairs can be exported and, hence, published.
*/
readonly properties: pulumi.Output<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
readonly region: pulumi.Output<string>;
/**
* ID of the associated Rest API
*/
readonly restApiId: pulumi.Output<string>;
/**
* Create a DocumentationPart resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: DocumentationPartArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering DocumentationPart resources.
*/
export interface DocumentationPartState {
/**
* The DocumentationPart identifier, generated by API Gateway when the documentation part is created.
*/
documentationPartId?: pulumi.Input<string>;
/**
* Location of the targeted API entity of the to-be-created documentation part. See below.
*/
location?: pulumi.Input<inputs.apigateway.DocumentationPartLocation>;
/**
* Content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only Swagger-compliant key-value pairs can be exported and, hence, published.
*/
properties?: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* ID of the associated Rest API
*/
restApiId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a DocumentationPart resource.
*/
export interface DocumentationPartArgs {
/**
* Location of the targeted API entity of the to-be-created documentation part. See below.
*/
location: pulumi.Input<inputs.apigateway.DocumentationPartLocation>;
/**
* Content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only Swagger-compliant key-value pairs can be exported and, hence, published.
*/
properties: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* ID of the associated Rest API
*/
restApiId: pulumi.Input<string>;
}