Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.apigateway.getAuthorizers
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Provides details about multiple API Gateway Authorizers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.apigateway.getAuthorizers({
restApiId: exampleAwsApiGatewayRestApi.id,
});
import pulumi
import pulumi_aws as aws
example = aws.apigateway.get_authorizers(rest_api_id=example_aws_api_gateway_rest_api["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apigateway.GetAuthorizers(ctx, &apigateway.GetAuthorizersArgs{
RestApiId: exampleAwsApiGatewayRestApi.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.ApiGateway.GetAuthorizers.Invoke(new()
{
RestApiId = exampleAwsApiGatewayRestApi.Id,
});
});
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());
}
}
variables:
example:
fn::invoke:
Function: aws:apigateway:getAuthorizers
Arguments:
restApiId: ${exampleAwsApiGatewayRestApi.id}
Using getAuthorizers
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAuthorizers(args: GetAuthorizersArgs, opts?: InvokeOptions): Promise<GetAuthorizersResult>
function getAuthorizersOutput(args: GetAuthorizersOutputArgs, opts?: InvokeOptions): Output<GetAuthorizersResult>
def get_authorizers(rest_api_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAuthorizersResult
def get_authorizers_output(rest_api_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAuthorizersResult]
func GetAuthorizers(ctx *Context, args *GetAuthorizersArgs, opts ...InvokeOption) (*GetAuthorizersResult, error)
func GetAuthorizersOutput(ctx *Context, args *GetAuthorizersOutputArgs, opts ...InvokeOption) GetAuthorizersResultOutput
> Note: This function is named GetAuthorizers
in the Go SDK.
public static class GetAuthorizers
{
public static Task<GetAuthorizersResult> InvokeAsync(GetAuthorizersArgs args, InvokeOptions? opts = null)
public static Output<GetAuthorizersResult> Invoke(GetAuthorizersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuthorizersResult> getAuthorizers(GetAuthorizersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:apigateway/getAuthorizers:getAuthorizers
arguments:
# arguments dictionary
The following arguments are supported:
- Rest
Api stringId - ID of the associated REST API.
- Rest
Api stringId - ID of the associated REST API.
- rest
Api StringId - ID of the associated REST API.
- rest
Api stringId - ID of the associated REST API.
- rest_
api_ strid - ID of the associated REST API.
- rest
Api StringId - ID of the associated REST API.
getAuthorizers Result
The following output properties are available:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- List of Authorizer identifiers.
- rest_
api_ strid
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi