Show / Hide Table of Contents

Class DocumentationVersion

Provides a resource to manage an API Gateway Documentation Version.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var exampleRestApi = new Aws.ApiGateway.RestApi("exampleRestApi", new Aws.ApiGateway.RestApiArgs
    {
    });
    var exampleDocumentationVersion = new Aws.ApiGateway.DocumentationVersion("exampleDocumentationVersion", new Aws.ApiGateway.DocumentationVersionArgs
    {
        Description = "Example description",
        RestApiId = exampleRestApi.Id,
        Version = "example_version",
    });
    var exampleDocumentationPart = new Aws.ApiGateway.DocumentationPart("exampleDocumentationPart", new Aws.ApiGateway.DocumentationPartArgs
    {
        Location = new Aws.ApiGateway.Inputs.DocumentationPartLocationArgs
        {
            Type = "API",
        },
        Properties = "{\"description\":\"Example\"}",
        RestApiId = exampleRestApi.Id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
DocumentationVersion
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.ApiGateway
Assembly: Pulumi.Aws.dll
Syntax
public class DocumentationVersion : CustomResource

Constructors

View Source

DocumentationVersion(String, DocumentationVersionArgs, CustomResourceOptions)

Create a DocumentationVersion resource with the given unique name, arguments, and options.

Declaration
public DocumentationVersion(string name, DocumentationVersionArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

DocumentationVersionArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Description

The description of the API documentation version.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

RestApiId

The ID of the associated Rest API

Declaration
public Output<string> RestApiId { get; }
Property Value
Type Description
Output<System.String>
View Source

Version

The version identifier of the API documentation snapshot.

Declaration
public Output<string> Version { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, DocumentationVersionState, CustomResourceOptions)

Get an existing DocumentationVersion resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static DocumentationVersion Get(string name, Input<string> id, DocumentationVersionState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

DocumentationVersionState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
DocumentationVersion
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.