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,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.ApiGateway
Assembly: Pulumi.Aws.dll
Syntax
public class DocumentationVersion : CustomResource
Constructors
View SourceDocumentationVersion(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 SourceDescription
The description of the API documentation version.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RestApiId
The ID of the associated Rest API
Declaration
public Output<string> RestApiId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Version
The version identifier of the API documentation snapshot.
Declaration
public Output<string> Version { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |