get Export
Exports a definition of an API in a particular output format and specification.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apigatewayv2.Apigatewayv2Functions;
import com.pulumi.aws.apigatewayv2.inputs.GetExportArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = Apigatewayv2Functions.getExport(GetExportArgs.builder()
.apiId(aws_apigatewayv2_route.test().api_id())
.specification("OAS30")
.outputType("JSON")
.build());
}
}
Return
A collection of values returned by getExport.
Parameters
A collection of arguments for invoking getExport.
Return
A collection of values returned by getExport.
Parameters
API identifier.
Version of the API Gateway export algorithm. API Gateway uses the latest version by default. Currently, the only supported version is 1.0
.
Whether to include API Gateway extensions in the exported API definition. API Gateway extensions are included by default.
Output type of the exported definition file. Valid values are JSON
and YAML
.
Version of the API specification to use. OAS30
, for OpenAPI 3.0, is the only supported value.
Name of the API stage to export. If you don't specify this property, a representation of the latest API configuration is exported.
See also
Return
A collection of values returned by getExport.
Parameters
Builder for com.pulumi.aws.apigatewayv2.kotlin.inputs.GetExportPlainArgs.