Viewing docs for AWS v7.21.0
published on Wednesday, Mar 4, 2026 by Pulumi
published on Wednesday, Mar 4, 2026 by Pulumi
Viewing docs for AWS v7.21.0
published on Wednesday, Mar 4, 2026 by Pulumi
published on Wednesday, Mar 4, 2026 by Pulumi
Data source for managing AWS API Gateway API Keys.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.apigateway.getApiKeys({});
import pulumi
import pulumi_aws as aws
example = aws.apigateway.get_api_keys()
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apigateway.GetApiKeys(ctx, &apigateway.GetApiKeysArgs{}, 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.GetApiKeys.Invoke();
});
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.GetApiKeysArgs;
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.getApiKeys(GetApiKeysArgs.builder()
.build());
}
}
variables:
example:
fn::invoke:
function: aws:apigateway:getApiKeys
arguments: {}
Using getApiKeys
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 getApiKeys(args: GetApiKeysArgs, opts?: InvokeOptions): Promise<GetApiKeysResult>
function getApiKeysOutput(args: GetApiKeysOutputArgs, opts?: InvokeOptions): Output<GetApiKeysResult>def get_api_keys(customer_id: Optional[str] = None,
include_values: Optional[bool] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApiKeysResult
def get_api_keys_output(customer_id: Optional[pulumi.Input[str]] = None,
include_values: Optional[pulumi.Input[bool]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApiKeysResult]func GetApiKeys(ctx *Context, args *GetApiKeysArgs, opts ...InvokeOption) (*GetApiKeysResult, error)
func GetApiKeysOutput(ctx *Context, args *GetApiKeysOutputArgs, opts ...InvokeOption) GetApiKeysResultOutput> Note: This function is named GetApiKeys in the Go SDK.
public static class GetApiKeys
{
public static Task<GetApiKeysResult> InvokeAsync(GetApiKeysArgs args, InvokeOptions? opts = null)
public static Output<GetApiKeysResult> Invoke(GetApiKeysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetApiKeysResult> getApiKeys(GetApiKeysArgs args, InvokeOptions options)
public static Output<GetApiKeysResult> getApiKeys(GetApiKeysArgs args, InvokeOptions options)
fn::invoke:
function: aws:apigateway/getApiKeys:getApiKeys
arguments:
# arguments dictionaryThe following arguments are supported:
- Customer
Id string - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- Include
Values bool - Set this value to
trueif you wish the result contains the key value. Defaults tofalse. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Customer
Id string - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- Include
Values bool - Set this value to
trueif you wish the result contains the key value. Defaults tofalse. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- customer
Id String - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- include
Values Boolean - Set this value to
trueif you wish the result contains the key value. Defaults tofalse. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- customer
Id string - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- include
Values boolean - Set this value to
trueif you wish the result contains the key value. Defaults tofalse. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- customer_
id str - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- include_
values bool - Set this value to
trueif you wish the result contains the key value. Defaults tofalse. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- customer
Id String - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- include
Values Boolean - Set this value to
trueif you wish the result contains the key value. Defaults tofalse. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
getApiKeys Result
The following output properties are available:
- Id string
- ID of the API Key.
- Items
List<Get
Api Keys Item> - List of objects containing API Key information. See below.
- Region string
- Customer
Id string - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- Include
Values bool
- Id string
- ID of the API Key.
- Items
[]Get
Api Keys Item - List of objects containing API Key information. See below.
- Region string
- Customer
Id string - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- Include
Values bool
- id String
- ID of the API Key.
- items
List<Get
Api Keys Item> - List of objects containing API Key information. See below.
- region String
- customer
Id String - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- include
Values Boolean
- id string
- ID of the API Key.
- items
Get
Api Keys Item[] - List of objects containing API Key information. See below.
- region string
- customer
Id string - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- include
Values boolean
- id str
- ID of the API Key.
- items
Sequence[Get
Api Keys Item] - List of objects containing API Key information. See below.
- region str
- customer_
id str - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- include_
values bool
- id String
- ID of the API Key.
- items List<Property Map>
- List of objects containing API Key information. See below.
- region String
- customer
Id String - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- include
Values Boolean
Supporting Types
GetApiKeysItem
- Created
Date string - Date and time when the API Key was created.
- Customer
Id string - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- Description string
- Description of the API Key.
- Enabled bool
- Whether the API Key is enabled.
- Id string
- ID of the API Key.
- Last
Updated stringDate - Date and time when the API Key was last updated.
- Name string
- Name of the API Key.
- Stage
Keys List<string> - Dictionary<string, string>
- Map of tags for the resource.
- Value string
- Value of the API Key.
- Created
Date string - Date and time when the API Key was created.
- Customer
Id string - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- Description string
- Description of the API Key.
- Enabled bool
- Whether the API Key is enabled.
- Id string
- ID of the API Key.
- Last
Updated stringDate - Date and time when the API Key was last updated.
- Name string
- Name of the API Key.
- Stage
Keys []string - map[string]string
- Map of tags for the resource.
- Value string
- Value of the API Key.
- created
Date String - Date and time when the API Key was created.
- customer
Id String - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- description String
- Description of the API Key.
- enabled Boolean
- Whether the API Key is enabled.
- id String
- ID of the API Key.
- last
Updated StringDate - Date and time when the API Key was last updated.
- name String
- Name of the API Key.
- stage
Keys List<String> - Map<String,String>
- Map of tags for the resource.
- value String
- Value of the API Key.
- created
Date string - Date and time when the API Key was created.
- customer
Id string - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- description string
- Description of the API Key.
- enabled boolean
- Whether the API Key is enabled.
- id string
- ID of the API Key.
- last
Updated stringDate - Date and time when the API Key was last updated.
- name string
- Name of the API Key.
- stage
Keys string[] - {[key: string]: string}
- Map of tags for the resource.
- value string
- Value of the API Key.
- created_
date str - Date and time when the API Key was created.
- customer_
id str - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- description str
- Description of the API Key.
- enabled bool
- Whether the API Key is enabled.
- id str
- ID of the API Key.
- last_
updated_ strdate - Date and time when the API Key was last updated.
- name str
- Name of the API Key.
- stage_
keys Sequence[str] - Mapping[str, str]
- Map of tags for the resource.
- value str
- Value of the API Key.
- created
Date String - Date and time when the API Key was created.
- customer
Id String - Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- description String
- Description of the API Key.
- enabled Boolean
- Whether the API Key is enabled.
- id String
- ID of the API Key.
- last
Updated StringDate - Date and time when the API Key was last updated.
- name String
- Name of the API Key.
- stage
Keys List<String> - Map<String>
- Map of tags for the resource.
- value String
- Value of the API Key.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.21.0
published on Wednesday, Mar 4, 2026 by Pulumi
published on Wednesday, Mar 4, 2026 by Pulumi
