SudoVirtualCardsSimulatorConfig

public struct SudoVirtualCardsSimulatorConfig : AWSAppSyncServiceConfigProvider, Decodable

Configuration for connecting to the Sudo VirtualCards Simulator Service via AppSync.

Properties

  • User pool identitifer of the user pool being used for authentication.

    Only set this property if using authentication type .amazonCognitoUserPools.

    Declaration

    Swift

    public var userPoolId: String?
  • User pool client identifier of the user pool’s client used for authentication.

    Only set this property if using authentication type .amazonCognitoUserPools.

    Declaration

    Swift

    public var clientId: String?

Properties: AWSAppSyncServiceConfigProvider

  • Declaration

    Swift

    public var endpoint: URL
  • Declaration

    Swift

    public var region: AWSRegionType
  • Declaration

    Swift

    public var clientDatabasePrefix: String?
  • Declaration

    Swift

    public var authType: AWSAppSyncAuthType
  • Declaration

    Swift

    public var apiKey: String?

Lifecycle

  • Initialize an instance of SudoVirtualCardsSimulatorConfig. Use this initializer if using API_KEY as the method of authentication.

    Declaration

    Swift

    public init(
        endpoint: URL,
        region: AWSRegionType,
        apiKey: String,
        clientDatabasePrefix: String?
    )
  • Initialize an instance of SudoVirtualCardsSimulatorConfig. Use this initializer if using AMAZON_COGNITO_USER_POOLS as the method of authentication.

    Declaration

    Swift

    public init(
        endpoint: URL,
        region: AWSRegionType,
        userPoolId: String,
        clientId: String,
        clientDatabasePrefix: String? = nil
    )

Conformance: Decodable

  • Declaration

    Swift

    public init(from decoder: Decoder) throws