We recommend new projects start with resources from the AWS provider.
aws-native.appsync.getApi
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource schema for AppSync Api
Using getApi
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 getApi(args: GetApiArgs, opts?: InvokeOptions): Promise<GetApiResult>
function getApiOutput(args: GetApiOutputArgs, opts?: InvokeOptions): Output<GetApiResult>
def get_api(api_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApiResult
def get_api_output(api_arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApiResult]
func LookupApi(ctx *Context, args *LookupApiArgs, opts ...InvokeOption) (*LookupApiResult, error)
func LookupApiOutput(ctx *Context, args *LookupApiOutputArgs, opts ...InvokeOption) LookupApiResultOutput
> Note: This function is named LookupApi
in the Go SDK.
public static class GetApi
{
public static Task<GetApiResult> InvokeAsync(GetApiArgs args, InvokeOptions? opts = null)
public static Output<GetApiResult> Invoke(GetApiInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApiResult> getApi(GetApiArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:appsync:getApi
arguments:
# arguments dictionary
The following arguments are supported:
- Api
Arn string - The Amazon Resource Name (ARN) of the AppSync Api
- Api
Arn string - The Amazon Resource Name (ARN) of the AppSync Api
- api
Arn String - The Amazon Resource Name (ARN) of the AppSync Api
- api
Arn string - The Amazon Resource Name (ARN) of the AppSync Api
- api_
arn str - The Amazon Resource Name (ARN) of the AppSync Api
- api
Arn String - The Amazon Resource Name (ARN) of the AppSync Api
getApi Result
The following output properties are available:
- Api
Arn string - The Amazon Resource Name (ARN) of the AppSync Api
- Api
Id string - The unique identifier for the AppSync Api generated by the service
- Dns
Pulumi.
Aws Native. App Sync. Outputs. Api Dns Map - Event
Config Pulumi.Aws Native. App Sync. Outputs. Api Event Config - Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- Name string
- The name of the
Api
. - Owner
Contact string The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
- List<Pulumi.
Aws Native. Outputs. Tag> - A set of tags (key-value pairs) for this API.
- Api
Arn string - The Amazon Resource Name (ARN) of the AppSync Api
- Api
Id string - The unique identifier for the AppSync Api generated by the service
- Dns
Api
Dns Map - Event
Config ApiEvent Config - Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- Name string
- The name of the
Api
. - Owner
Contact string The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
- Tag
- A set of tags (key-value pairs) for this API.
- api
Arn String - The Amazon Resource Name (ARN) of the AppSync Api
- api
Id String - The unique identifier for the AppSync Api generated by the service
- dns
Api
Dns Map - event
Config ApiEvent Config - Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- name String
- The name of the
Api
. - owner
Contact String The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
- List<Tag>
- A set of tags (key-value pairs) for this API.
- api
Arn string - The Amazon Resource Name (ARN) of the AppSync Api
- api
Id string - The unique identifier for the AppSync Api generated by the service
- dns
Api
Dns Map - event
Config ApiEvent Config - Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- name string
- The name of the
Api
. - owner
Contact string The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
- Tag[]
- A set of tags (key-value pairs) for this API.
- api_
arn str - The Amazon Resource Name (ARN) of the AppSync Api
- api_
id str - The unique identifier for the AppSync Api generated by the service
- dns
Api
Dns Map - event_
config ApiEvent Config - Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- name str
- The name of the
Api
. - owner_
contact str The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
- Sequence[root_Tag]
- A set of tags (key-value pairs) for this API.
- api
Arn String - The Amazon Resource Name (ARN) of the AppSync Api
- api
Id String - The unique identifier for the AppSync Api generated by the service
- dns Property Map
- event
Config Property Map - Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- name String
- The name of the
Api
. - owner
Contact String The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
- List<Property Map>
- A set of tags (key-value pairs) for this API.
Supporting Types
ApiAuthMode
ApiAuthProvider
ApiAuthenticationType
ApiCognitoConfig
- Aws
Region string - User
Pool stringId - App
Id stringClient Regex
- Aws
Region string - User
Pool stringId - App
Id stringClient Regex
- aws
Region String - user
Pool StringId - app
Id StringClient Regex
- aws
Region string - user
Pool stringId - app
Id stringClient Regex
- aws_
region str - user_
pool_ strid - app_
id_ strclient_ regex
- aws
Region String - user
Pool StringId - app
Id StringClient Regex
ApiDnsMap
ApiEventConfig
- Auth
Providers List<Pulumi.Aws Native. App Sync. Inputs. Api Auth Provider> - A list of authorization providers.
- Connection
Auth List<Pulumi.Modes Aws Native. App Sync. Inputs. Api Auth Mode> - A list of valid authorization modes for the Event API connections.
- Default
Publish List<Pulumi.Auth Modes Aws Native. App Sync. Inputs. Api Auth Mode> - A list of valid authorization modes for the Event API publishing.
- Default
Subscribe List<Pulumi.Auth Modes Aws Native. App Sync. Inputs. Api Auth Mode> - A list of valid authorization modes for the Event API subscriptions.
- Log
Config Pulumi.Aws Native. App Sync. Inputs. Api Event Log Config - The CloudWatch Logs configuration for the Event API.
- Auth
Providers []ApiAuth Provider - A list of authorization providers.
- Connection
Auth []ApiModes Auth Mode - A list of valid authorization modes for the Event API connections.
- Default
Publish []ApiAuth Modes Auth Mode - A list of valid authorization modes for the Event API publishing.
- Default
Subscribe []ApiAuth Modes Auth Mode - A list of valid authorization modes for the Event API subscriptions.
- Log
Config ApiEvent Log Config - The CloudWatch Logs configuration for the Event API.
- auth
Providers List<ApiAuth Provider> - A list of authorization providers.
- connection
Auth List<ApiModes Auth Mode> - A list of valid authorization modes for the Event API connections.
- default
Publish List<ApiAuth Modes Auth Mode> - A list of valid authorization modes for the Event API publishing.
- default
Subscribe List<ApiAuth Modes Auth Mode> - A list of valid authorization modes for the Event API subscriptions.
- log
Config ApiEvent Log Config - The CloudWatch Logs configuration for the Event API.
- auth
Providers ApiAuth Provider[] - A list of authorization providers.
- connection
Auth ApiModes Auth Mode[] - A list of valid authorization modes for the Event API connections.
- default
Publish ApiAuth Modes Auth Mode[] - A list of valid authorization modes for the Event API publishing.
- default
Subscribe ApiAuth Modes Auth Mode[] - A list of valid authorization modes for the Event API subscriptions.
- log
Config ApiEvent Log Config - The CloudWatch Logs configuration for the Event API.
- auth_
providers Sequence[ApiAuth Provider] - A list of authorization providers.
- connection_
auth_ Sequence[Apimodes Auth Mode] - A list of valid authorization modes for the Event API connections.
- default_
publish_ Sequence[Apiauth_ modes Auth Mode] - A list of valid authorization modes for the Event API publishing.
- default_
subscribe_ Sequence[Apiauth_ modes Auth Mode] - A list of valid authorization modes for the Event API subscriptions.
- log_
config ApiEvent Log Config - The CloudWatch Logs configuration for the Event API.
- auth
Providers List<Property Map> - A list of authorization providers.
- connection
Auth List<Property Map>Modes - A list of valid authorization modes for the Event API connections.
- default
Publish List<Property Map>Auth Modes - A list of valid authorization modes for the Event API publishing.
- default
Subscribe List<Property Map>Auth Modes - A list of valid authorization modes for the Event API subscriptions.
- log
Config Property Map - The CloudWatch Logs configuration for the Event API.
ApiEventLogConfig
- Cloud
Watch stringLogs Role Arn - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- Log
Level Pulumi.Aws Native. App Sync. Api Event Log Level - The type of information to log for the Event API.
- Cloud
Watch stringLogs Role Arn - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- Log
Level ApiEvent Log Level - The type of information to log for the Event API.
- cloud
Watch StringLogs Role Arn - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- log
Level ApiEvent Log Level - The type of information to log for the Event API.
- cloud
Watch stringLogs Role Arn - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- log
Level ApiEvent Log Level - The type of information to log for the Event API.
- cloud_
watch_ strlogs_ role_ arn - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- log_
level ApiEvent Log Level - The type of information to log for the Event API.
- cloud
Watch StringLogs Role Arn - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- log
Level "NONE" | "ERROR" | "ALL" | "INFO" | "DEBUG" - The type of information to log for the Event API.
ApiEventLogLevel
ApiLambdaAuthorizerConfig
- string
- int
- Identity
Validation stringExpression
- string
- int
- Identity
Validation stringExpression
- String
- Integer
- identity
Validation StringExpression
- string
- number
- identity
Validation stringExpression
- str
- int
- identity_
validation_ strexpression
- String
- Number
- identity
Validation StringExpression
ApiOpenIdConnectConfig
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.