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)
public static Output<GetApiResult> getApi(GetApiArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:appsync:getApi
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ApiArn string
- The Amazon Resource Name (ARN) of the AppSync Api
- ApiArn string
- The Amazon Resource Name (ARN) of the AppSync Api
- apiArn String
- The Amazon Resource Name (ARN) of the AppSync Api
- apiArn string
- The Amazon Resource Name (ARN) of the AppSync Api
- api_arn str
- The Amazon Resource Name (ARN) of the AppSync Api
- apiArn String
- The Amazon Resource Name (ARN) of the AppSync Api
getApi Result
The following output properties are available:
- ApiArn string
- The Amazon Resource Name (ARN) of the AppSync Api
- ApiId string
- The unique identifier for the AppSync Api generated by the service
- Dns
Pulumi.Aws Native. App Sync. Outputs. Api Dns Map 
- EventConfig 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.
- OwnerContact 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.
- ApiArn string
- The Amazon Resource Name (ARN) of the AppSync Api
- ApiId string
- The unique identifier for the AppSync Api generated by the service
- Dns
ApiDns Map 
- EventConfig 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.
- OwnerContact 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.
- apiArn String
- The Amazon Resource Name (ARN) of the AppSync Api
- apiId String
- The unique identifier for the AppSync Api generated by the service
- dns
ApiDns Map 
- eventConfig 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.
- ownerContact 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.
- apiArn string
- The Amazon Resource Name (ARN) of the AppSync Api
- apiId string
- The unique identifier for the AppSync Api generated by the service
- dns
ApiDns Map 
- eventConfig 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.
- ownerContact 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
ApiDns 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.
- apiArn String
- The Amazon Resource Name (ARN) of the AppSync Api
- apiId String
- The unique identifier for the AppSync Api generated by the service
- dns Property Map
- eventConfig 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.
- ownerContact 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  
- AwsRegion string
- UserPool stringId 
- AppId stringClient Regex 
- AwsRegion string
- UserPool stringId 
- AppId stringClient Regex 
- awsRegion String
- userPool StringId 
- appId StringClient Regex 
- awsRegion string
- userPool stringId 
- appId stringClient Regex 
- aws_region str
- user_pool_ strid 
- app_id_ strclient_ regex 
- awsRegion String
- userPool StringId 
- appId StringClient Regex 
ApiDnsMap  
ApiEventConfig  
- AuthProviders List<Pulumi.Aws Native. App Sync. Inputs. Api Auth Provider> 
- A list of authorization providers.
- ConnectionAuth List<Pulumi.Modes Aws Native. App Sync. Inputs. Api Auth Mode> 
- A list of valid authorization modes for the Event API connections.
- DefaultPublish List<Pulumi.Auth Modes Aws Native. App Sync. Inputs. Api Auth Mode> 
- A list of valid authorization modes for the Event API publishing.
- DefaultSubscribe List<Pulumi.Auth Modes Aws Native. App Sync. Inputs. Api Auth Mode> 
- A list of valid authorization modes for the Event API subscriptions.
- LogConfig Pulumi.Aws Native. App Sync. Inputs. Api Event Log Config 
- The CloudWatch Logs configuration for the Event API.
- AuthProviders []ApiAuth Provider 
- A list of authorization providers.
- ConnectionAuth []ApiModes Auth Mode 
- A list of valid authorization modes for the Event API connections.
- DefaultPublish []ApiAuth Modes Auth Mode 
- A list of valid authorization modes for the Event API publishing.
- DefaultSubscribe []ApiAuth Modes Auth Mode 
- A list of valid authorization modes for the Event API subscriptions.
- LogConfig ApiEvent Log Config 
- The CloudWatch Logs configuration for the Event API.
- authProviders List<ApiAuth Provider> 
- A list of authorization providers.
- connectionAuth List<ApiModes Auth Mode> 
- A list of valid authorization modes for the Event API connections.
- defaultPublish List<ApiAuth Modes Auth Mode> 
- A list of valid authorization modes for the Event API publishing.
- defaultSubscribe List<ApiAuth Modes Auth Mode> 
- A list of valid authorization modes for the Event API subscriptions.
- logConfig ApiEvent Log Config 
- The CloudWatch Logs configuration for the Event API.
- authProviders ApiAuth Provider[] 
- A list of authorization providers.
- connectionAuth ApiModes Auth Mode[] 
- A list of valid authorization modes for the Event API connections.
- defaultPublish ApiAuth Modes Auth Mode[] 
- A list of valid authorization modes for the Event API publishing.
- defaultSubscribe ApiAuth Modes Auth Mode[] 
- A list of valid authorization modes for the Event API subscriptions.
- logConfig 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.
- authProviders List<Property Map>
- A list of authorization providers.
- connectionAuth List<Property Map>Modes 
- A list of valid authorization modes for the Event API connections.
- defaultPublish List<Property Map>Auth Modes 
- A list of valid authorization modes for the Event API publishing.
- defaultSubscribe List<Property Map>Auth Modes 
- A list of valid authorization modes for the Event API subscriptions.
- logConfig Property Map
- The CloudWatch Logs configuration for the Event API.
ApiEventLogConfig   
- CloudWatch stringLogs Role Arn 
- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- LogLevel Pulumi.Aws Native. App Sync. Api Event Log Level 
- The type of information to log for the Event API.
- CloudWatch stringLogs Role Arn 
- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- LogLevel ApiEvent Log Level 
- The type of information to log for the Event API.
- cloudWatch StringLogs Role Arn 
- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- logLevel ApiEvent Log Level 
- The type of information to log for the Event API.
- cloudWatch stringLogs Role Arn 
- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- logLevel 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.
- cloudWatch StringLogs Role Arn 
- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- logLevel "NONE" | "ERROR" | "ALL" | "INFO" | "DEBUG"
- The type of information to log for the Event API.
ApiEventLogLevel   
ApiLambdaAuthorizerConfig   
- string
- int
- IdentityValidation stringExpression 
- string
- int
- IdentityValidation stringExpression 
- String
- Integer
- identityValidation StringExpression 
- string
- number
- identityValidation stringExpression 
- str
- int
- identity_validation_ strexpression 
- String
- Number
- identityValidation 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.