ServerlessApplicationRepository
public struct ServerlessApplicationRepository
Client object for interacting with AWS ServerlessApplicationRepository service.
The AWS Serverless Application Repository makes it easy for developers and enterprises to quickly find and deploy serverless applications in the AWS Cloud. For more information about serverless applications, see Serverless Computing and Applications on the AWS website.The AWS Serverless Application Repository is deeply integrated with the AWS Lambda console, so that developers of all levels can get started with serverless computing without needing to learn anything new. You can use category keywords to browse for applications such as web and mobile backends, data processing applications, or chatbots. You can also search for applications by name, publisher, or event source. To use an application, you simply choose it, configure any required fields, and deploy it with a few clicks. You can also easily publish applications, sharing them publicly with the community at large, or privately within your team or across your organization. To publish a serverless application (or app), you can use the AWS Management Console, AWS Command Line Interface (AWS CLI), or AWS SDKs to upload the code. Along with the code, you upload a simple manifest file, also known as the AWS Serverless Application Model (AWS SAM) template. For more information about AWS SAM, see AWS Serverless Application Model (AWS SAM) on the AWS Labs GitHub repository.The AWS Serverless Application Repository Developer Guide contains more information about the two developer experiences available:
Consuming Applications – Browse for applications and view information about them, including source code and readme files. Also install, configure, and deploy applications of your choosing. Publishing Applications – Configure and upload applications to make them available to other developers, and publish new versions of applications.
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the ServerlessApplicationRepository 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
accessKeyId
Public access key provided by AWS
secretAccessKey
Private access key provided by AWS
sessionToken
Token provided by STS.AssumeRole() which allows access to another AWS account
region
Region of server you want to communicate with
endpoint
Custom endpoint URL to use instead of standard AWS servers
middlewares
Array of middlewares to apply to requests and responses
eventLoopGroupProvider
EventLoopGroup to use. Use
useAWSClientShared
if the client shall manage its own EventLoopGroup.
-
Creates an application, optionally including an AWS SAM file to create the first application version in the same call.
Declaration
Swift
public func createApplication(_ input: CreateApplicationRequest) -> EventLoopFuture<CreateApplicationResponse>
-
Creates an application version.
Declaration
Swift
public func createApplicationVersion(_ input: CreateApplicationVersionRequest) -> EventLoopFuture<CreateApplicationVersionResponse>
-
Creates an AWS CloudFormation change set for the given application.
Declaration
Swift
public func createCloudFormationChangeSet(_ input: CreateCloudFormationChangeSetRequest) -> EventLoopFuture<CreateCloudFormationChangeSetResponse>
-
Creates an AWS CloudFormation template.
Declaration
Swift
public func createCloudFormationTemplate(_ input: CreateCloudFormationTemplateRequest) -> EventLoopFuture<CreateCloudFormationTemplateResponse>
-
Deletes the specified application.
Declaration
Swift
@discardableResult public func deleteApplication(_ input: DeleteApplicationRequest) -> EventLoopFuture<Void>
-
Gets the specified application.
Declaration
Swift
public func getApplication(_ input: GetApplicationRequest) -> EventLoopFuture<GetApplicationResponse>
-
Retrieves the policy for the application.
Declaration
Swift
public func getApplicationPolicy(_ input: GetApplicationPolicyRequest) -> EventLoopFuture<GetApplicationPolicyResponse>
-
Gets the specified AWS CloudFormation template.
Declaration
Swift
public func getCloudFormationTemplate(_ input: GetCloudFormationTemplateRequest) -> EventLoopFuture<GetCloudFormationTemplateResponse>
-
Retrieves the list of applications nested in the containing application.
Declaration
Swift
public func listApplicationDependencies(_ input: ListApplicationDependenciesRequest) -> EventLoopFuture<ListApplicationDependenciesResponse>
-
Lists versions for the specified application.
Declaration
Swift
public func listApplicationVersions(_ input: ListApplicationVersionsRequest) -> EventLoopFuture<ListApplicationVersionsResponse>
-
Lists applications owned by the requester.
Declaration
Swift
public func listApplications(_ input: ListApplicationsRequest) -> EventLoopFuture<ListApplicationsResponse>
-
Sets the permission policy for an application. For the list of actions supported for this operation, see Application Permissions .
Declaration
Swift
public func putApplicationPolicy(_ input: PutApplicationPolicyRequest) -> EventLoopFuture<PutApplicationPolicyResponse>
-
Unshares an application from an AWS Organization.This operation can be called only from the organization’s master account.
Declaration
Swift
@discardableResult public func unshareApplication(_ input: UnshareApplicationRequest) -> EventLoopFuture<Void>
-
Updates the specified application.
Declaration
Swift
public func updateApplication(_ input: UpdateApplicationRequest) -> EventLoopFuture<UpdateApplicationResponse>
-
Retrieves the list of applications nested in the containing application.
Declaration
Swift
public func listApplicationDependenciesPaginator(_ input: ListApplicationDependenciesRequest, onPage: @escaping (ListApplicationDependenciesResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Lists versions for the specified application.
Declaration
Swift
public func listApplicationVersionsPaginator(_ input: ListApplicationVersionsRequest, onPage: @escaping (ListApplicationVersionsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Lists applications owned by the requester.
Declaration
Swift
public func listApplicationsPaginator(_ input: ListApplicationsRequest, onPage: @escaping (ListApplicationsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Undocumented
See moreDeclaration
Swift
public struct ListApplicationDependenciesRequest : AWSShape
extension ServerlessApplicationRepository.ListApplicationDependenciesRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListApplicationVersionsRequest : AWSShape
extension ServerlessApplicationRepository.ListApplicationVersionsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListApplicationsRequest : AWSShape
extension ServerlessApplicationRepository.ListApplicationsRequest: AWSPaginateStringToken