com.pulumi.aws.apigateway.ApigatewayFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.apigateway;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.apigateway.inputs.GetAuthorizerArgs;
import com.pulumi.aws.apigateway.inputs.GetAuthorizerPlainArgs;
import com.pulumi.aws.apigateway.inputs.GetAuthorizersArgs;
import com.pulumi.aws.apigateway.inputs.GetAuthorizersPlainArgs;
import com.pulumi.aws.apigateway.inputs.GetDomainNameArgs;
import com.pulumi.aws.apigateway.inputs.GetDomainNamePlainArgs;
import com.pulumi.aws.apigateway.inputs.GetExportArgs;
import com.pulumi.aws.apigateway.inputs.GetExportPlainArgs;
import com.pulumi.aws.apigateway.inputs.GetKeyArgs;
import com.pulumi.aws.apigateway.inputs.GetKeyPlainArgs;
import com.pulumi.aws.apigateway.inputs.GetResourceArgs;
import com.pulumi.aws.apigateway.inputs.GetResourcePlainArgs;
import com.pulumi.aws.apigateway.inputs.GetRestApiArgs;
import com.pulumi.aws.apigateway.inputs.GetRestApiPlainArgs;
import com.pulumi.aws.apigateway.inputs.GetSdkArgs;
import com.pulumi.aws.apigateway.inputs.GetSdkPlainArgs;
import com.pulumi.aws.apigateway.inputs.GetVpcLinkArgs;
import com.pulumi.aws.apigateway.inputs.GetVpcLinkPlainArgs;
import com.pulumi.aws.apigateway.outputs.GetAuthorizerResult;
import com.pulumi.aws.apigateway.outputs.GetAuthorizersResult;
import com.pulumi.aws.apigateway.outputs.GetDomainNameResult;
import com.pulumi.aws.apigateway.outputs.GetExportResult;
import com.pulumi.aws.apigateway.outputs.GetKeyResult;
import com.pulumi.aws.apigateway.outputs.GetResourceResult;
import com.pulumi.aws.apigateway.outputs.GetRestApiResult;
import com.pulumi.aws.apigateway.outputs.GetSdkResult;
import com.pulumi.aws.apigateway.outputs.GetVpcLinkResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import com.pulumi.deployment.InvokeOutputOptions;
import java.util.concurrent.CompletableFuture;
public final class ApigatewayFunctions {
/**
* Provides details about a specific API Gateway Authorizer.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetAuthorizerArgs;
* 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 example = ApigatewayFunctions.getAuthorizer(GetAuthorizerArgs.builder()
* .restApiId(exampleAwsApiGatewayRestApi.id())
* .authorizerId(exampleAwsApiGatewayAuthorizers.ids()[0])
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAuthorizer(GetAuthorizerArgs args) {
return getAuthorizer(args, InvokeOptions.Empty);
}
/**
* Provides details about a specific API Gateway Authorizer.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetAuthorizerArgs;
* 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 example = ApigatewayFunctions.getAuthorizer(GetAuthorizerArgs.builder()
* .restApiId(exampleAwsApiGatewayRestApi.id())
* .authorizerId(exampleAwsApiGatewayAuthorizers.ids()[0])
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAuthorizerPlain(GetAuthorizerPlainArgs args) {
return getAuthorizerPlain(args, InvokeOptions.Empty);
}
/**
* Provides details about a specific API Gateway Authorizer.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetAuthorizerArgs;
* 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 example = ApigatewayFunctions.getAuthorizer(GetAuthorizerArgs.builder()
* .restApiId(exampleAwsApiGatewayRestApi.id())
* .authorizerId(exampleAwsApiGatewayAuthorizers.ids()[0])
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAuthorizer(GetAuthorizerArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getAuthorizer:getAuthorizer", TypeShape.of(GetAuthorizerResult.class), args, Utilities.withVersion(options));
}
/**
* Provides details about a specific API Gateway Authorizer.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetAuthorizerArgs;
* 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 example = ApigatewayFunctions.getAuthorizer(GetAuthorizerArgs.builder()
* .restApiId(exampleAwsApiGatewayRestApi.id())
* .authorizerId(exampleAwsApiGatewayAuthorizers.ids()[0])
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAuthorizer(GetAuthorizerArgs args, InvokeOutputOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getAuthorizer:getAuthorizer", TypeShape.of(GetAuthorizerResult.class), args, Utilities.withVersion(options));
}
/**
* Provides details about a specific API Gateway Authorizer.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetAuthorizerArgs;
* 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 example = ApigatewayFunctions.getAuthorizer(GetAuthorizerArgs.builder()
* .restApiId(exampleAwsApiGatewayRestApi.id())
* .authorizerId(exampleAwsApiGatewayAuthorizers.ids()[0])
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAuthorizerPlain(GetAuthorizerPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:apigateway/getAuthorizer:getAuthorizer", TypeShape.of(GetAuthorizerResult.class), args, Utilities.withVersion(options));
}
/**
* Provides details about multiple API Gateway Authorizers.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetAuthorizersArgs;
* 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 example = ApigatewayFunctions.getAuthorizers(GetAuthorizersArgs.builder()
* .restApiId(exampleAwsApiGatewayRestApi.id())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAuthorizers(GetAuthorizersArgs args) {
return getAuthorizers(args, InvokeOptions.Empty);
}
/**
* Provides details about multiple API Gateway Authorizers.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetAuthorizersArgs;
* 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 example = ApigatewayFunctions.getAuthorizers(GetAuthorizersArgs.builder()
* .restApiId(exampleAwsApiGatewayRestApi.id())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAuthorizersPlain(GetAuthorizersPlainArgs args) {
return getAuthorizersPlain(args, InvokeOptions.Empty);
}
/**
* Provides details about multiple API Gateway Authorizers.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetAuthorizersArgs;
* 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 example = ApigatewayFunctions.getAuthorizers(GetAuthorizersArgs.builder()
* .restApiId(exampleAwsApiGatewayRestApi.id())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAuthorizers(GetAuthorizersArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getAuthorizers:getAuthorizers", TypeShape.of(GetAuthorizersResult.class), args, Utilities.withVersion(options));
}
/**
* Provides details about multiple API Gateway Authorizers.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetAuthorizersArgs;
* 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 example = ApigatewayFunctions.getAuthorizers(GetAuthorizersArgs.builder()
* .restApiId(exampleAwsApiGatewayRestApi.id())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAuthorizers(GetAuthorizersArgs args, InvokeOutputOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getAuthorizers:getAuthorizers", TypeShape.of(GetAuthorizersResult.class), args, Utilities.withVersion(options));
}
/**
* Provides details about multiple API Gateway Authorizers.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetAuthorizersArgs;
* 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 example = ApigatewayFunctions.getAuthorizers(GetAuthorizersArgs.builder()
* .restApiId(exampleAwsApiGatewayRestApi.id())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAuthorizersPlain(GetAuthorizersPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:apigateway/getAuthorizers:getAuthorizers", TypeShape.of(GetAuthorizersResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the custom domain name for use with AWS API Gateway.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetDomainNameArgs;
* 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 example = ApigatewayFunctions.getDomainName(GetDomainNameArgs.builder()
* .domainName("api.example.com")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getDomainName(GetDomainNameArgs args) {
return getDomainName(args, InvokeOptions.Empty);
}
/**
* Use this data source to get the custom domain name for use with AWS API Gateway.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetDomainNameArgs;
* 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 example = ApigatewayFunctions.getDomainName(GetDomainNameArgs.builder()
* .domainName("api.example.com")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getDomainNamePlain(GetDomainNamePlainArgs args) {
return getDomainNamePlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to get the custom domain name for use with AWS API Gateway.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetDomainNameArgs;
* 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 example = ApigatewayFunctions.getDomainName(GetDomainNameArgs.builder()
* .domainName("api.example.com")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getDomainName(GetDomainNameArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getDomainName:getDomainName", TypeShape.of(GetDomainNameResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the custom domain name for use with AWS API Gateway.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetDomainNameArgs;
* 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 example = ApigatewayFunctions.getDomainName(GetDomainNameArgs.builder()
* .domainName("api.example.com")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getDomainName(GetDomainNameArgs args, InvokeOutputOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getDomainName:getDomainName", TypeShape.of(GetDomainNameResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the custom domain name for use with AWS API Gateway.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetDomainNameArgs;
* 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 example = ApigatewayFunctions.getDomainName(GetDomainNameArgs.builder()
* .domainName("api.example.com")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getDomainNamePlain(GetDomainNamePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:apigateway/getDomainName:getDomainName", TypeShape.of(GetDomainNameResult.class), args, Utilities.withVersion(options));
}
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.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 example = ApigatewayFunctions.getExport(GetExportArgs.builder()
* .restApiId(exampleAwsApiGatewayStage.restApiId())
* .stageName(exampleAwsApiGatewayStage.stageName())
* .exportType("oas30")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getExport(GetExportArgs args) {
return getExport(args, InvokeOptions.Empty);
}
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.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 example = ApigatewayFunctions.getExport(GetExportArgs.builder()
* .restApiId(exampleAwsApiGatewayStage.restApiId())
* .stageName(exampleAwsApiGatewayStage.stageName())
* .exportType("oas30")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getExportPlain(GetExportPlainArgs args) {
return getExportPlain(args, InvokeOptions.Empty);
}
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.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 example = ApigatewayFunctions.getExport(GetExportArgs.builder()
* .restApiId(exampleAwsApiGatewayStage.restApiId())
* .stageName(exampleAwsApiGatewayStage.stageName())
* .exportType("oas30")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getExport(GetExportArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getExport:getExport", TypeShape.of(GetExportResult.class), args, Utilities.withVersion(options));
}
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.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 example = ApigatewayFunctions.getExport(GetExportArgs.builder()
* .restApiId(exampleAwsApiGatewayStage.restApiId())
* .stageName(exampleAwsApiGatewayStage.stageName())
* .exportType("oas30")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getExport(GetExportArgs args, InvokeOutputOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getExport:getExport", TypeShape.of(GetExportResult.class), args, Utilities.withVersion(options));
}
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.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 example = ApigatewayFunctions.getExport(GetExportArgs.builder()
* .restApiId(exampleAwsApiGatewayStage.restApiId())
* .stageName(exampleAwsApiGatewayStage.stageName())
* .exportType("oas30")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getExportPlain(GetExportPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:apigateway/getExport:getExport", TypeShape.of(GetExportResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the name and value of a pre-existing API Key, for
* example to supply credentials for a dependency microservice.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetKeyArgs;
* 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 myApiKey = ApigatewayFunctions.getKey(GetKeyArgs.builder()
* .id("ru3mpjgse6")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getKey(GetKeyArgs args) {
return getKey(args, InvokeOptions.Empty);
}
/**
* Use this data source to get the name and value of a pre-existing API Key, for
* example to supply credentials for a dependency microservice.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetKeyArgs;
* 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 myApiKey = ApigatewayFunctions.getKey(GetKeyArgs.builder()
* .id("ru3mpjgse6")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getKeyPlain(GetKeyPlainArgs args) {
return getKeyPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to get the name and value of a pre-existing API Key, for
* example to supply credentials for a dependency microservice.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetKeyArgs;
* 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 myApiKey = ApigatewayFunctions.getKey(GetKeyArgs.builder()
* .id("ru3mpjgse6")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getKey(GetKeyArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getKey:getKey", TypeShape.of(GetKeyResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the name and value of a pre-existing API Key, for
* example to supply credentials for a dependency microservice.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetKeyArgs;
* 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 myApiKey = ApigatewayFunctions.getKey(GetKeyArgs.builder()
* .id("ru3mpjgse6")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getKey(GetKeyArgs args, InvokeOutputOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getKey:getKey", TypeShape.of(GetKeyResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the name and value of a pre-existing API Key, for
* example to supply credentials for a dependency microservice.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetKeyArgs;
* 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 myApiKey = ApigatewayFunctions.getKey(GetKeyArgs.builder()
* .id("ru3mpjgse6")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getKeyPlain(GetKeyPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:apigateway/getKey:getKey", TypeShape.of(GetKeyResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the id of a Resource in API Gateway.
* To fetch the Resource, you must provide the REST API id as well as the full path.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetRestApiArgs;
* import com.pulumi.aws.apigateway.inputs.GetResourceArgs;
* 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 myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder()
* .name("my-rest-api")
* .build());
*
* final var myResource = ApigatewayFunctions.getResource(GetResourceArgs.builder()
* .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id()))
* .path("/endpoint/path")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getResource(GetResourceArgs args) {
return getResource(args, InvokeOptions.Empty);
}
/**
* Use this data source to get the id of a Resource in API Gateway.
* To fetch the Resource, you must provide the REST API id as well as the full path.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetRestApiArgs;
* import com.pulumi.aws.apigateway.inputs.GetResourceArgs;
* 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 myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder()
* .name("my-rest-api")
* .build());
*
* final var myResource = ApigatewayFunctions.getResource(GetResourceArgs.builder()
* .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id()))
* .path("/endpoint/path")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getResourcePlain(GetResourcePlainArgs args) {
return getResourcePlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to get the id of a Resource in API Gateway.
* To fetch the Resource, you must provide the REST API id as well as the full path.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetRestApiArgs;
* import com.pulumi.aws.apigateway.inputs.GetResourceArgs;
* 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 myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder()
* .name("my-rest-api")
* .build());
*
* final var myResource = ApigatewayFunctions.getResource(GetResourceArgs.builder()
* .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id()))
* .path("/endpoint/path")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getResource(GetResourceArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getResource:getResource", TypeShape.of(GetResourceResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the id of a Resource in API Gateway.
* To fetch the Resource, you must provide the REST API id as well as the full path.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetRestApiArgs;
* import com.pulumi.aws.apigateway.inputs.GetResourceArgs;
* 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 myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder()
* .name("my-rest-api")
* .build());
*
* final var myResource = ApigatewayFunctions.getResource(GetResourceArgs.builder()
* .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id()))
* .path("/endpoint/path")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getResource(GetResourceArgs args, InvokeOutputOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getResource:getResource", TypeShape.of(GetResourceResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the id of a Resource in API Gateway.
* To fetch the Resource, you must provide the REST API id as well as the full path.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetRestApiArgs;
* import com.pulumi.aws.apigateway.inputs.GetResourceArgs;
* 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 myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder()
* .name("my-rest-api")
* .build());
*
* final var myResource = ApigatewayFunctions.getResource(GetResourceArgs.builder()
* .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id()))
* .path("/endpoint/path")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getResourcePlain(GetResourcePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:apigateway/getResource:getResource", TypeShape.of(GetResourceResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the id and root_resource_id of a REST API in
* API Gateway. To fetch the REST API you must provide a name to match against.
* As there is no unique name constraint on REST APIs this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetRestApiArgs;
* 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 myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder()
* .name("my-rest-api")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getRestApi(GetRestApiArgs args) {
return getRestApi(args, InvokeOptions.Empty);
}
/**
* Use this data source to get the id and root_resource_id of a REST API in
* API Gateway. To fetch the REST API you must provide a name to match against.
* As there is no unique name constraint on REST APIs this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetRestApiArgs;
* 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 myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder()
* .name("my-rest-api")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getRestApiPlain(GetRestApiPlainArgs args) {
return getRestApiPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to get the id and root_resource_id of a REST API in
* API Gateway. To fetch the REST API you must provide a name to match against.
* As there is no unique name constraint on REST APIs this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetRestApiArgs;
* 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 myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder()
* .name("my-rest-api")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getRestApi(GetRestApiArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getRestApi:getRestApi", TypeShape.of(GetRestApiResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the id and root_resource_id of a REST API in
* API Gateway. To fetch the REST API you must provide a name to match against.
* As there is no unique name constraint on REST APIs this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetRestApiArgs;
* 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 myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder()
* .name("my-rest-api")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getRestApi(GetRestApiArgs args, InvokeOutputOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getRestApi:getRestApi", TypeShape.of(GetRestApiResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the id and root_resource_id of a REST API in
* API Gateway. To fetch the REST API you must provide a name to match against.
* As there is no unique name constraint on REST APIs this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetRestApiArgs;
* 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 myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder()
* .name("my-rest-api")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getRestApiPlain(GetRestApiPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:apigateway/getRestApi:getRestApi", TypeShape.of(GetRestApiResult.class), args, Utilities.withVersion(options));
}
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetSdkArgs;
* 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 example = ApigatewayFunctions.getSdk(GetSdkArgs.builder()
* .restApiId(exampleAwsApiGatewayStage.restApiId())
* .stageName(exampleAwsApiGatewayStage.stageName())
* .sdkType("android")
* .parameters(Map.ofEntries(
* Map.entry("groupId", "example"),
* Map.entry("artifactId", "example"),
* Map.entry("artifactVersion", "example"),
* Map.entry("invokerPackage", "example")
* ))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getSdk(GetSdkArgs args) {
return getSdk(args, InvokeOptions.Empty);
}
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetSdkArgs;
* 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 example = ApigatewayFunctions.getSdk(GetSdkArgs.builder()
* .restApiId(exampleAwsApiGatewayStage.restApiId())
* .stageName(exampleAwsApiGatewayStage.stageName())
* .sdkType("android")
* .parameters(Map.ofEntries(
* Map.entry("groupId", "example"),
* Map.entry("artifactId", "example"),
* Map.entry("artifactVersion", "example"),
* Map.entry("invokerPackage", "example")
* ))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getSdkPlain(GetSdkPlainArgs args) {
return getSdkPlain(args, InvokeOptions.Empty);
}
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetSdkArgs;
* 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 example = ApigatewayFunctions.getSdk(GetSdkArgs.builder()
* .restApiId(exampleAwsApiGatewayStage.restApiId())
* .stageName(exampleAwsApiGatewayStage.stageName())
* .sdkType("android")
* .parameters(Map.ofEntries(
* Map.entry("groupId", "example"),
* Map.entry("artifactId", "example"),
* Map.entry("artifactVersion", "example"),
* Map.entry("invokerPackage", "example")
* ))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getSdk(GetSdkArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getSdk:getSdk", TypeShape.of(GetSdkResult.class), args, Utilities.withVersion(options));
}
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetSdkArgs;
* 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 example = ApigatewayFunctions.getSdk(GetSdkArgs.builder()
* .restApiId(exampleAwsApiGatewayStage.restApiId())
* .stageName(exampleAwsApiGatewayStage.stageName())
* .sdkType("android")
* .parameters(Map.ofEntries(
* Map.entry("groupId", "example"),
* Map.entry("artifactId", "example"),
* Map.entry("artifactVersion", "example"),
* Map.entry("invokerPackage", "example")
* ))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getSdk(GetSdkArgs args, InvokeOutputOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getSdk:getSdk", TypeShape.of(GetSdkResult.class), args, Utilities.withVersion(options));
}
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetSdkArgs;
* 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 example = ApigatewayFunctions.getSdk(GetSdkArgs.builder()
* .restApiId(exampleAwsApiGatewayStage.restApiId())
* .stageName(exampleAwsApiGatewayStage.stageName())
* .sdkType("android")
* .parameters(Map.ofEntries(
* Map.entry("groupId", "example"),
* Map.entry("artifactId", "example"),
* Map.entry("artifactVersion", "example"),
* Map.entry("invokerPackage", "example")
* ))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getSdkPlain(GetSdkPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:apigateway/getSdk:getSdk", TypeShape.of(GetSdkResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the id of a VPC Link in
* API Gateway. To fetch the VPC Link you must provide a name to match against.
* As there is no unique name constraint on API Gateway VPC Links this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetVpcLinkArgs;
* 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 myApiGatewayVpcLink = ApigatewayFunctions.getVpcLink(GetVpcLinkArgs.builder()
* .name("my-vpc-link")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getVpcLink(GetVpcLinkArgs args) {
return getVpcLink(args, InvokeOptions.Empty);
}
/**
* Use this data source to get the id of a VPC Link in
* API Gateway. To fetch the VPC Link you must provide a name to match against.
* As there is no unique name constraint on API Gateway VPC Links this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetVpcLinkArgs;
* 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 myApiGatewayVpcLink = ApigatewayFunctions.getVpcLink(GetVpcLinkArgs.builder()
* .name("my-vpc-link")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getVpcLinkPlain(GetVpcLinkPlainArgs args) {
return getVpcLinkPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to get the id of a VPC Link in
* API Gateway. To fetch the VPC Link you must provide a name to match against.
* As there is no unique name constraint on API Gateway VPC Links this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetVpcLinkArgs;
* 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 myApiGatewayVpcLink = ApigatewayFunctions.getVpcLink(GetVpcLinkArgs.builder()
* .name("my-vpc-link")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getVpcLink(GetVpcLinkArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getVpcLink:getVpcLink", TypeShape.of(GetVpcLinkResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the id of a VPC Link in
* API Gateway. To fetch the VPC Link you must provide a name to match against.
* As there is no unique name constraint on API Gateway VPC Links this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetVpcLinkArgs;
* 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 myApiGatewayVpcLink = ApigatewayFunctions.getVpcLink(GetVpcLinkArgs.builder()
* .name("my-vpc-link")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getVpcLink(GetVpcLinkArgs args, InvokeOutputOptions options) {
return Deployment.getInstance().invoke("aws:apigateway/getVpcLink:getVpcLink", TypeShape.of(GetVpcLinkResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to get the id of a VPC Link in
* API Gateway. To fetch the VPC Link you must provide a name to match against.
* As there is no unique name constraint on API Gateway VPC Links this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.apigateway.ApigatewayFunctions;
* import com.pulumi.aws.apigateway.inputs.GetVpcLinkArgs;
* 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 myApiGatewayVpcLink = ApigatewayFunctions.getVpcLink(GetVpcLinkArgs.builder()
* .name("my-vpc-link")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getVpcLinkPlain(GetVpcLinkPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:apigateway/getVpcLink:getVpcLink", TypeShape.of(GetVpcLinkResult.class), args, Utilities.withVersion(options));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy