EC2InstanceConnect
public struct EC2InstanceConnect
Client object for interacting with AWS EC2InstanceConnect service.
AWS EC2 Connect Service is a service that enables system administrators to publish temporary SSH keys to their EC2 instances in order to establish connections to their instances without leaving a permanent authentication option.
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the EC2InstanceConnect 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.
-
Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
Declaration
Swift
public func sendSSHPublicKey(_ input: SendSSHPublicKeyRequest) -> EventLoopFuture<SendSSHPublicKeyResponse>
View on GitHub
EC2InstanceConnect Structure Reference