1. Packages
  2. AWS
  3. API Docs
  4. apigateway
  5. getAuthorizers
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.apigateway.getAuthorizers

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 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:

    RestApiId string
    ID of the associated REST API.
    RestApiId string
    ID of the associated REST API.
    restApiId String
    ID of the associated REST API.
    restApiId string
    ID of the associated REST API.
    rest_api_id str
    ID of the associated REST API.
    restApiId String
    ID of the associated REST API.

    getAuthorizers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    List of Authorizer identifiers.
    RestApiId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    List of Authorizer identifiers.
    RestApiId string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    List of Authorizer identifiers.
    restApiId String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    List of Authorizer identifiers.
    restApiId string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    List of Authorizer identifiers.
    rest_api_id str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    List of Authorizer identifiers.
    restApiId String

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi