AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ServerlessApplicationRepository

import "github.com/aws/aws-sdk-go/service/serverlessapplicationrepository"

type ServerlessApplicationRepository struct { *client.Client }

ServerlessApplicationRepository provides the API operation methods for making requests to AWSServerlessApplicationRepository. See this package's package overview docs for details on the service.

ServerlessApplicationRepository methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

Client

Type: *client.Client

Method

CreateApplication

func (c *ServerlessApplicationRepository) CreateApplication(input *CreateApplicationRequest) (*CreateApplicationOutput, error)

CreateApplication API operation for AWSServerlessApplicationRepository.

Creates an application, optionally including an AWS SAM file to create the first application version in the same call.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation CreateApplication for usage and error information.

Returned Error Codes:

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeConflictException "ConflictException" The resource already exists.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplication

CreateApplicationRequest

func (c *ServerlessApplicationRepository) CreateApplicationRequest(input *CreateApplicationRequest) (req *request.Request, output *CreateApplicationOutput)

CreateApplicationRequest generates a "aws/request.Request" representing the client's request for the CreateApplication operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateApplication for more information on using the CreateApplication API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateApplicationRequest method. req, resp := client.CreateApplicationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplication

CreateApplicationVersion

func (c *ServerlessApplicationRepository) CreateApplicationVersion(input *CreateApplicationVersionRequest) (*CreateApplicationVersionOutput, error)

CreateApplicationVersion API operation for AWSServerlessApplicationRepository.

Creates an application version.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation CreateApplicationVersion for usage and error information.

Returned Error Codes:

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeConflictException "ConflictException" The resource already exists.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplicationVersion

CreateApplicationVersionRequest

func (c *ServerlessApplicationRepository) CreateApplicationVersionRequest(input *CreateApplicationVersionRequest) (req *request.Request, output *CreateApplicationVersionOutput)

CreateApplicationVersionRequest generates a "aws/request.Request" representing the client's request for the CreateApplicationVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateApplicationVersion for more information on using the CreateApplicationVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateApplicationVersionRequest method. req, resp := client.CreateApplicationVersionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplicationVersion

CreateApplicationVersionWithContext

func (c *ServerlessApplicationRepository) CreateApplicationVersionWithContext(ctx aws.Context, input *CreateApplicationVersionRequest, opts ...request.Option) (*CreateApplicationVersionOutput, error)

CreateApplicationVersionWithContext is the same as CreateApplicationVersion with the addition of the ability to pass a context and additional request options.

See CreateApplicationVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateApplicationWithContext

func (c *ServerlessApplicationRepository) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationRequest, opts ...request.Option) (*CreateApplicationOutput, error)

CreateApplicationWithContext is the same as CreateApplication with the addition of the ability to pass a context and additional request options.

See CreateApplication for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateCloudFormationChangeSet

func (c *ServerlessApplicationRepository) CreateCloudFormationChangeSet(input *CreateCloudFormationChangeSetRequest) (*CreateCloudFormationChangeSetOutput, error)

CreateCloudFormationChangeSet API operation for AWSServerlessApplicationRepository.

Creates an AWS CloudFormation change set for the given application.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation CreateCloudFormationChangeSet for usage and error information.

Returned Error Codes:

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationChangeSet

CreateCloudFormationChangeSetRequest

func (c *ServerlessApplicationRepository) CreateCloudFormationChangeSetRequest(input *CreateCloudFormationChangeSetRequest) (req *request.Request, output *CreateCloudFormationChangeSetOutput)

CreateCloudFormationChangeSetRequest generates a "aws/request.Request" representing the client's request for the CreateCloudFormationChangeSet operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateCloudFormationChangeSet for more information on using the CreateCloudFormationChangeSet API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateCloudFormationChangeSetRequest method. req, resp := client.CreateCloudFormationChangeSetRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationChangeSet

CreateCloudFormationChangeSetWithContext

func (c *ServerlessApplicationRepository) CreateCloudFormationChangeSetWithContext(ctx aws.Context, input *CreateCloudFormationChangeSetRequest, opts ...request.Option) (*CreateCloudFormationChangeSetOutput, error)

CreateCloudFormationChangeSetWithContext is the same as CreateCloudFormationChangeSet with the addition of the ability to pass a context and additional request options.

See CreateCloudFormationChangeSet for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateCloudFormationTemplate

func (c *ServerlessApplicationRepository) CreateCloudFormationTemplate(input *CreateCloudFormationTemplateInput) (*CreateCloudFormationTemplateOutput, error)

CreateCloudFormationTemplate API operation for AWSServerlessApplicationRepository.

Creates an AWS CloudFormation template.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation CreateCloudFormationTemplate for usage and error information.

Returned Error Codes:

  • ErrCodeNotFoundException "NotFoundException" The resource (for example, an access policy statement) specified in the request doesn't exist.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationTemplate

CreateCloudFormationTemplateRequest

func (c *ServerlessApplicationRepository) CreateCloudFormationTemplateRequest(input *CreateCloudFormationTemplateInput) (req *request.Request, output *CreateCloudFormationTemplateOutput)

CreateCloudFormationTemplateRequest generates a "aws/request.Request" representing the client's request for the CreateCloudFormationTemplate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateCloudFormationTemplate for more information on using the CreateCloudFormationTemplate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateCloudFormationTemplateRequest method. req, resp := client.CreateCloudFormationTemplateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationTemplate

CreateCloudFormationTemplateWithContext

func (c *ServerlessApplicationRepository) CreateCloudFormationTemplateWithContext(ctx aws.Context, input *CreateCloudFormationTemplateInput, opts ...request.Option) (*CreateCloudFormationTemplateOutput, error)

CreateCloudFormationTemplateWithContext is the same as CreateCloudFormationTemplate with the addition of the ability to pass a context and additional request options.

See CreateCloudFormationTemplate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteApplication

func (c *ServerlessApplicationRepository) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error)

DeleteApplication API operation for AWSServerlessApplicationRepository.

Deletes the specified application.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation DeleteApplication for usage and error information.

Returned Error Codes:

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

  • ErrCodeNotFoundException "NotFoundException" The resource (for example, an access policy statement) specified in the request doesn't exist.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeConflictException "ConflictException" The resource already exists.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/DeleteApplication

DeleteApplicationRequest

func (c *ServerlessApplicationRepository) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput)

DeleteApplicationRequest generates a "aws/request.Request" representing the client's request for the DeleteApplication operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteApplication for more information on using the DeleteApplication API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteApplicationRequest method. req, resp := client.DeleteApplicationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/DeleteApplication

DeleteApplicationWithContext

func (c *ServerlessApplicationRepository) DeleteApplicationWithContext(ctx aws.Context, input *DeleteApplicationInput, opts ...request.Option) (*DeleteApplicationOutput, error)

DeleteApplicationWithContext is the same as DeleteApplication with the addition of the ability to pass a context and additional request options.

See DeleteApplication for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetApplication

func (c *ServerlessApplicationRepository) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error)

GetApplication API operation for AWSServerlessApplicationRepository.

Gets the specified application.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation GetApplication for usage and error information.

Returned Error Codes:

  • ErrCodeNotFoundException "NotFoundException" The resource (for example, an access policy statement) specified in the request doesn't exist.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplication

GetApplicationPolicy

func (c *ServerlessApplicationRepository) GetApplicationPolicy(input *GetApplicationPolicyInput) (*GetApplicationPolicyOutput, error)

GetApplicationPolicy API operation for AWSServerlessApplicationRepository.

Retrieves the policy for the application.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation GetApplicationPolicy for usage and error information.

Returned Error Codes:

  • ErrCodeNotFoundException "NotFoundException" The resource (for example, an access policy statement) specified in the request doesn't exist.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplicationPolicy

GetApplicationPolicyRequest

func (c *ServerlessApplicationRepository) GetApplicationPolicyRequest(input *GetApplicationPolicyInput) (req *request.Request, output *GetApplicationPolicyOutput)

GetApplicationPolicyRequest generates a "aws/request.Request" representing the client's request for the GetApplicationPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetApplicationPolicy for more information on using the GetApplicationPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetApplicationPolicyRequest method. req, resp := client.GetApplicationPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplicationPolicy

GetApplicationPolicyWithContext

func (c *ServerlessApplicationRepository) GetApplicationPolicyWithContext(ctx aws.Context, input *GetApplicationPolicyInput, opts ...request.Option) (*GetApplicationPolicyOutput, error)

GetApplicationPolicyWithContext is the same as GetApplicationPolicy with the addition of the ability to pass a context and additional request options.

See GetApplicationPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetApplicationRequest

func (c *ServerlessApplicationRepository) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput)

GetApplicationRequest generates a "aws/request.Request" representing the client's request for the GetApplication operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetApplication for more information on using the GetApplication API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetApplicationRequest method. req, resp := client.GetApplicationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplication

GetApplicationWithContext

func (c *ServerlessApplicationRepository) GetApplicationWithContext(ctx aws.Context, input *GetApplicationInput, opts ...request.Option) (*GetApplicationOutput, error)

GetApplicationWithContext is the same as GetApplication with the addition of the ability to pass a context and additional request options.

See GetApplication for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetCloudFormationTemplate

func (c *ServerlessApplicationRepository) GetCloudFormationTemplate(input *GetCloudFormationTemplateInput) (*GetCloudFormationTemplateOutput, error)

GetCloudFormationTemplate API operation for AWSServerlessApplicationRepository.

Gets the specified AWS CloudFormation template.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation GetCloudFormationTemplate for usage and error information.

Returned Error Codes:

  • ErrCodeNotFoundException "NotFoundException" The resource (for example, an access policy statement) specified in the request doesn't exist.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetCloudFormationTemplate

GetCloudFormationTemplateRequest

func (c *ServerlessApplicationRepository) GetCloudFormationTemplateRequest(input *GetCloudFormationTemplateInput) (req *request.Request, output *GetCloudFormationTemplateOutput)

GetCloudFormationTemplateRequest generates a "aws/request.Request" representing the client's request for the GetCloudFormationTemplate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCloudFormationTemplate for more information on using the GetCloudFormationTemplate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCloudFormationTemplateRequest method. req, resp := client.GetCloudFormationTemplateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetCloudFormationTemplate

GetCloudFormationTemplateWithContext

func (c *ServerlessApplicationRepository) GetCloudFormationTemplateWithContext(ctx aws.Context, input *GetCloudFormationTemplateInput, opts ...request.Option) (*GetCloudFormationTemplateOutput, error)

GetCloudFormationTemplateWithContext is the same as GetCloudFormationTemplate with the addition of the ability to pass a context and additional request options.

See GetCloudFormationTemplate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListApplicationDependencies

func (c *ServerlessApplicationRepository) ListApplicationDependencies(input *ListApplicationDependenciesInput) (*ListApplicationDependenciesOutput, error)

ListApplicationDependencies API operation for AWSServerlessApplicationRepository.

Retrieves the list of applications nested in the containing application.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation ListApplicationDependencies for usage and error information.

Returned Error Codes:

  • ErrCodeNotFoundException "NotFoundException" The resource (for example, an access policy statement) specified in the request doesn't exist.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationDependencies

ListApplicationDependenciesPages

func (c *ServerlessApplicationRepository) ListApplicationDependenciesPages(input *ListApplicationDependenciesInput, fn func(*ListApplicationDependenciesOutput, bool) bool) error

ListApplicationDependenciesPages iterates over the pages of a ListApplicationDependencies operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListApplicationDependencies method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListApplicationDependencies operation. pageNum := 0 err := client.ListApplicationDependenciesPages(params, func(page *ListApplicationDependenciesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListApplicationDependenciesPagesWithContext

func (c *ServerlessApplicationRepository) ListApplicationDependenciesPagesWithContext(ctx aws.Context, input *ListApplicationDependenciesInput, fn func(*ListApplicationDependenciesOutput, bool) bool, opts ...request.Option) error

ListApplicationDependenciesPagesWithContext same as ListApplicationDependenciesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListApplicationDependenciesRequest

func (c *ServerlessApplicationRepository) ListApplicationDependenciesRequest(input *ListApplicationDependenciesInput) (req *request.Request, output *ListApplicationDependenciesOutput)

ListApplicationDependenciesRequest generates a "aws/request.Request" representing the client's request for the ListApplicationDependencies operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListApplicationDependencies for more information on using the ListApplicationDependencies API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListApplicationDependenciesRequest method. req, resp := client.ListApplicationDependenciesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationDependencies

ListApplicationDependenciesWithContext

func (c *ServerlessApplicationRepository) ListApplicationDependenciesWithContext(ctx aws.Context, input *ListApplicationDependenciesInput, opts ...request.Option) (*ListApplicationDependenciesOutput, error)

ListApplicationDependenciesWithContext is the same as ListApplicationDependencies with the addition of the ability to pass a context and additional request options.

See ListApplicationDependencies for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListApplicationVersions

func (c *ServerlessApplicationRepository) ListApplicationVersions(input *ListApplicationVersionsInput) (*ListApplicationVersionsOutput, error)

ListApplicationVersions API operation for AWSServerlessApplicationRepository.

Lists versions for the specified application.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation ListApplicationVersions for usage and error information.

Returned Error Codes:

  • ErrCodeNotFoundException "NotFoundException" The resource (for example, an access policy statement) specified in the request doesn't exist.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationVersions

ListApplicationVersionsPages

func (c *ServerlessApplicationRepository) ListApplicationVersionsPages(input *ListApplicationVersionsInput, fn func(*ListApplicationVersionsOutput, bool) bool) error

ListApplicationVersionsPages iterates over the pages of a ListApplicationVersions operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListApplicationVersions method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListApplicationVersions operation. pageNum := 0 err := client.ListApplicationVersionsPages(params, func(page *ListApplicationVersionsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListApplicationVersionsPagesWithContext

func (c *ServerlessApplicationRepository) ListApplicationVersionsPagesWithContext(ctx aws.Context, input *ListApplicationVersionsInput, fn func(*ListApplicationVersionsOutput, bool) bool, opts ...request.Option) error

ListApplicationVersionsPagesWithContext same as ListApplicationVersionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListApplicationVersionsRequest

func (c *ServerlessApplicationRepository) ListApplicationVersionsRequest(input *ListApplicationVersionsInput) (req *request.Request, output *ListApplicationVersionsOutput)

ListApplicationVersionsRequest generates a "aws/request.Request" representing the client's request for the ListApplicationVersions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListApplicationVersions for more information on using the ListApplicationVersions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListApplicationVersionsRequest method. req, resp := client.ListApplicationVersionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationVersions

ListApplicationVersionsWithContext

func (c *ServerlessApplicationRepository) ListApplicationVersionsWithContext(ctx aws.Context, input *ListApplicationVersionsInput, opts ...request.Option) (*ListApplicationVersionsOutput, error)

ListApplicationVersionsWithContext is the same as ListApplicationVersions with the addition of the ability to pass a context and additional request options.

See ListApplicationVersions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListApplications

func (c *ServerlessApplicationRepository) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error)

ListApplications API operation for AWSServerlessApplicationRepository.

Lists applications owned by the requester.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation ListApplications for usage and error information.

Returned Error Codes:

  • ErrCodeNotFoundException "NotFoundException" The resource (for example, an access policy statement) specified in the request doesn't exist.

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplications

ListApplicationsPages

func (c *ServerlessApplicationRepository) ListApplicationsPages(input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool) error

ListApplicationsPages iterates over the pages of a ListApplications operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListApplications method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListApplications operation. pageNum := 0 err := client.ListApplicationsPages(params, func(page *ListApplicationsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListApplicationsPagesWithContext

func (c *ServerlessApplicationRepository) ListApplicationsPagesWithContext(ctx aws.Context, input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool, opts ...request.Option) error

ListApplicationsPagesWithContext same as ListApplicationsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListApplicationsRequest

func (c *ServerlessApplicationRepository) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput)

ListApplicationsRequest generates a "aws/request.Request" representing the client's request for the ListApplications operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListApplications for more information on using the ListApplications API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListApplicationsRequest method. req, resp := client.ListApplicationsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplications

ListApplicationsWithContext

func (c *ServerlessApplicationRepository) ListApplicationsWithContext(ctx aws.Context, input *ListApplicationsInput, opts ...request.Option) (*ListApplicationsOutput, error)

ListApplicationsWithContext is the same as ListApplications with the addition of the ability to pass a context and additional request options.

See ListApplications for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

PutApplicationPolicy

func (c *ServerlessApplicationRepository) PutApplicationPolicy(input *PutApplicationPolicyInput) (*PutApplicationPolicyOutput, error)

PutApplicationPolicy API operation for AWSServerlessApplicationRepository.

Sets the permission policy for an application. For the list of actions supported for this operation, see Application Permissions (https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions) .

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation PutApplicationPolicy for usage and error information.

Returned Error Codes:

  • ErrCodeNotFoundException "NotFoundException" The resource (for example, an access policy statement) specified in the request doesn't exist.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy

PutApplicationPolicyRequest

func (c *ServerlessApplicationRepository) PutApplicationPolicyRequest(input *PutApplicationPolicyInput) (req *request.Request, output *PutApplicationPolicyOutput)

PutApplicationPolicyRequest generates a "aws/request.Request" representing the client's request for the PutApplicationPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PutApplicationPolicy for more information on using the PutApplicationPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PutApplicationPolicyRequest method. req, resp := client.PutApplicationPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy

PutApplicationPolicyWithContext

func (c *ServerlessApplicationRepository) PutApplicationPolicyWithContext(ctx aws.Context, input *PutApplicationPolicyInput, opts ...request.Option) (*PutApplicationPolicyOutput, error)

PutApplicationPolicyWithContext is the same as PutApplicationPolicy with the addition of the ability to pass a context and additional request options.

See PutApplicationPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateApplication

func (c *ServerlessApplicationRepository) UpdateApplication(input *UpdateApplicationRequest) (*UpdateApplicationOutput, error)

UpdateApplication API operation for AWSServerlessApplicationRepository.

Updates the specified application.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWSServerlessApplicationRepository's API operation UpdateApplication for usage and error information.

Returned Error Codes:

  • ErrCodeBadRequestException "BadRequestException" One of the parameters in the request is invalid.

  • ErrCodeInternalServerErrorException "InternalServerErrorException" The AWS Serverless Application Repository service encountered an internal error.

  • ErrCodeForbiddenException "ForbiddenException" The client is not authenticated.

  • ErrCodeNotFoundException "NotFoundException" The resource (for example, an access policy statement) specified in the request doesn't exist.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" The client is sending more than the allowed number of requests per unit of time.

  • ErrCodeConflictException "ConflictException" The resource already exists.

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UpdateApplication

UpdateApplicationRequest

func (c *ServerlessApplicationRepository) UpdateApplicationRequest(input *UpdateApplicationRequest) (req *request.Request, output *UpdateApplicationOutput)

UpdateApplicationRequest generates a "aws/request.Request" representing the client's request for the UpdateApplication operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateApplication for more information on using the UpdateApplication API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateApplicationRequest method. req, resp := client.UpdateApplicationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UpdateApplication

UpdateApplicationWithContext

func (c *ServerlessApplicationRepository) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationRequest, opts ...request.Option) (*UpdateApplicationOutput, error)

UpdateApplicationWithContext is the same as UpdateApplication with the addition of the ability to pass a context and additional request options.

See UpdateApplication for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

On this page: