ApiGatewayManagementApi
public struct ApiGatewayManagementApi
Client object for interacting with AWS ApiGatewayManagementApi service.
The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the SDK’s endpoint to point to the endpoint of your deployed API. The endpoint will be of the form https://{api-id}.execute-api.{region}.amazonaws.com/{stage}, or will be the endpoint corresponding to your API’s custom domain and base path, if applicable.
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the ApiGatewayManagementApi client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)Parameters
accessKeyIdPublic access key provided by AWS
secretAccessKeyPrivate access key provided by AWS
sessionTokenToken provided by STS.AssumeRole() which allows access to another AWS account
regionRegion of server you want to communicate with
endpointCustom endpoint URL to use instead of standard AWS servers
middlewaresArray of middlewares to apply to requests and responses
eventLoopGroupProviderEventLoopGroup to use. Use
useAWSClientSharedif the client shall manage its own EventLoopGroup.
-
Delete the connection with the provided id.
Declaration
Swift
@discardableResult public func deleteConnection(_ input: DeleteConnectionRequest) -> EventLoopFuture<Void> -
Get information about the connection with the provided id.
Declaration
Swift
public func getConnection(_ input: GetConnectionRequest) -> EventLoopFuture<GetConnectionResponse> -
Sends the provided data to the specified connection.
Declaration
Swift
@discardableResult public func postToConnection(_ input: PostToConnectionRequest) -> EventLoopFuture<Void>
View on GitHub
ApiGatewayManagementApi Structure Reference