You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::AppSync::Types::CreateGraphqlApiRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb

Overview

Note:

When making an API call, you may pass CreateGraphqlApiRequest data as a hash:

{
  name: "String", # required
  authentication_type: "API_KEY", # required, accepts API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS
  user_pool_config: {
    user_pool_id: "String", # required
    aws_region: "String", # required
    default_action: "ALLOW", # required, accepts ALLOW, DENY
    app_id_client_regex: "String",
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#authentication_typeString

The authentication type: API key, IAM, or Amazon Cognito User Pools.

Returns:

  • (String)


187
188
189
190
191
192
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 187

class CreateGraphqlApiRequest < Struct.new(
  :name,
  :authentication_type,
  :user_pool_config)
  include Aws::Structure
end

#nameString

A user-supplied name for the GraphqlApi.

Returns:

  • (String)


187
188
189
190
191
192
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 187

class CreateGraphqlApiRequest < Struct.new(
  :name,
  :authentication_type,
  :user_pool_config)
  include Aws::Structure
end

#user_pool_configTypes::UserPoolConfig

The Amazon Cognito User Pool configuration.



187
188
189
190
191
192
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 187

class CreateGraphqlApiRequest < Struct.new(
  :name,
  :authentication_type,
  :user_pool_config)
  include Aws::Structure
end