UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

119 lines (118 loc) 4.45 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage an API Gateway Documentation Version. * * ## 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 exampleDocumentationPart = new aws.apigateway.DocumentationPart("example", { * location: { * type: "API", * }, * properties: "{\"description\":\"Example\"}", * restApiId: exampleRestApi.id, * }); * const example = new aws.apigateway.DocumentationVersion("example", { * version: "example_version", * restApiId: exampleRestApi.id, * description: "Example description", * }, { * dependsOn: [exampleDocumentationPart], * }); * ``` * * ## Import * * Using `pulumi import`, import API Gateway documentation versions using `REST-API-ID/VERSION`. For example: * * ```sh * $ pulumi import aws:apigateway/documentationVersion:DocumentationVersion example 5i4e1ko720/example-version * ``` */ export declare class DocumentationVersion extends pulumi.CustomResource { /** * Get an existing DocumentationVersion 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?: DocumentationVersionState, opts?: pulumi.CustomResourceOptions): DocumentationVersion; /** * Returns true if the given object is an instance of DocumentationVersion. 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 DocumentationVersion; /** * Description of the API documentation version. */ readonly description: pulumi.Output<string | undefined>; /** * 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>; /** * Version identifier of the API documentation snapshot. */ readonly version: pulumi.Output<string>; /** * Create a DocumentationVersion 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: DocumentationVersionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DocumentationVersion resources. */ export interface DocumentationVersionState { /** * Description of the API documentation version. */ description?: 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>; /** * Version identifier of the API documentation snapshot. */ version?: pulumi.Input<string>; } /** * The set of arguments for constructing a DocumentationVersion resource. */ export interface DocumentationVersionArgs { /** * Description of the API documentation version. */ description?: 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>; /** * Version identifier of the API documentation snapshot. */ version: pulumi.Input<string>; }