package serverlessapplicationrepository
import "github.com/aws/aws-sdk-go-v2/service/serverlessapplicationrepository"
Index ¶
- Constants
- func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
- type Client
- func New(options Options, optFns ...func(*Options)) *Client
- func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client
- func (c *Client) CreateApplication(ctx context.Context, params *CreateApplicationInput, optFns ...func(*Options)) (*CreateApplicationOutput, error)
- func (c *Client) CreateApplicationVersion(ctx context.Context, params *CreateApplicationVersionInput, optFns ...func(*Options)) (*CreateApplicationVersionOutput, error)
- func (c *Client) CreateCloudFormationChangeSet(ctx context.Context, params *CreateCloudFormationChangeSetInput, optFns ...func(*Options)) (*CreateCloudFormationChangeSetOutput, error)
- func (c *Client) CreateCloudFormationTemplate(ctx context.Context, params *CreateCloudFormationTemplateInput, optFns ...func(*Options)) (*CreateCloudFormationTemplateOutput, error)
- func (c *Client) DeleteApplication(ctx context.Context, params *DeleteApplicationInput, optFns ...func(*Options)) (*DeleteApplicationOutput, error)
- func (c *Client) GetApplication(ctx context.Context, params *GetApplicationInput, optFns ...func(*Options)) (*GetApplicationOutput, error)
- func (c *Client) GetApplicationPolicy(ctx context.Context, params *GetApplicationPolicyInput, optFns ...func(*Options)) (*GetApplicationPolicyOutput, error)
- func (c *Client) GetCloudFormationTemplate(ctx context.Context, params *GetCloudFormationTemplateInput, optFns ...func(*Options)) (*GetCloudFormationTemplateOutput, error)
- func (c *Client) ListApplicationDependencies(ctx context.Context, params *ListApplicationDependenciesInput, optFns ...func(*Options)) (*ListApplicationDependenciesOutput, error)
- func (c *Client) ListApplicationVersions(ctx context.Context, params *ListApplicationVersionsInput, optFns ...func(*Options)) (*ListApplicationVersionsOutput, error)
- func (c *Client) ListApplications(ctx context.Context, params *ListApplicationsInput, optFns ...func(*Options)) (*ListApplicationsOutput, error)
- func (c *Client) PutApplicationPolicy(ctx context.Context, params *PutApplicationPolicyInput, optFns ...func(*Options)) (*PutApplicationPolicyOutput, error)
- func (c *Client) UnshareApplication(ctx context.Context, params *UnshareApplicationInput, optFns ...func(*Options)) (*UnshareApplicationOutput, error)
- func (c *Client) UpdateApplication(ctx context.Context, params *UpdateApplicationInput, optFns ...func(*Options)) (*UpdateApplicationOutput, error)
- type CreateApplicationInput
- type CreateApplicationOutput
- type CreateApplicationVersionInput
- type CreateApplicationVersionOutput
- type CreateCloudFormationChangeSetInput
- type CreateCloudFormationChangeSetOutput
- type CreateCloudFormationTemplateInput
- type CreateCloudFormationTemplateOutput
- type DeleteApplicationInput
- type DeleteApplicationOutput
- type EndpointResolver
- type EndpointResolverFunc
- type GetApplicationInput
- type GetApplicationOutput
- type GetApplicationPolicyInput
- type GetApplicationPolicyOutput
- type GetCloudFormationTemplateInput
- type GetCloudFormationTemplateOutput
- type HTTPClient
- type HTTPSignerV4
- type ListApplicationDependenciesInput
- type ListApplicationDependenciesOutput
- type ListApplicationVersionsInput
- type ListApplicationVersionsOutput
- type ListApplicationsInput
- type ListApplicationsOutput
- type Options
- func (o Options) Copy() Options
- func (o Options) GetCredentials() aws.CredentialsProvider
- func (o Options) GetEndpointOptions() ResolverOptions
- func (o Options) GetEndpointResolver() EndpointResolver
- func (o Options) GetHTTPSignerV4() HTTPSignerV4
- func (o Options) GetRegion() string
- func (o Options) GetRetryer() retry.Retryer
- type PutApplicationPolicyInput
- type PutApplicationPolicyOutput
- type ResolveEndpoint
- func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
- func (*ResolveEndpoint) ID() string
- type ResolveEndpointMiddlewareOptions
- type ResolverOptions
- type UnshareApplicationInput
- type UnshareApplicationOutput
- type UpdateApplicationInput
- type UpdateApplicationOutput
Constants ¶
const ServiceAPIVersion = "2017-09-08"
const ServiceID = "ServerlessApplicationRepository"
Functions ¶
func AddResolveEndpointMiddleware ¶
func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func RemoveResolveEndpointMiddleware ¶
func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
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.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CreateApplication ¶
func (c *Client) CreateApplication(ctx context.Context, params *CreateApplicationInput, optFns ...func(*Options)) (*CreateApplicationOutput, error)
Creates an application, optionally including an AWS SAM file to create the first application version in the same call.
func (*Client) CreateApplicationVersion ¶
func (c *Client) CreateApplicationVersion(ctx context.Context, params *CreateApplicationVersionInput, optFns ...func(*Options)) (*CreateApplicationVersionOutput, error)
Creates an application version.
func (*Client) CreateCloudFormationChangeSet ¶
func (c *Client) CreateCloudFormationChangeSet(ctx context.Context, params *CreateCloudFormationChangeSetInput, optFns ...func(*Options)) (*CreateCloudFormationChangeSetOutput, error)
Creates an AWS CloudFormation change set for the given application.
func (*Client) CreateCloudFormationTemplate ¶
func (c *Client) CreateCloudFormationTemplate(ctx context.Context, params *CreateCloudFormationTemplateInput, optFns ...func(*Options)) (*CreateCloudFormationTemplateOutput, error)
Creates an AWS CloudFormation template.
func (*Client) DeleteApplication ¶
func (c *Client) DeleteApplication(ctx context.Context, params *DeleteApplicationInput, optFns ...func(*Options)) (*DeleteApplicationOutput, error)
Deletes the specified application.
func (*Client) GetApplication ¶
func (c *Client) GetApplication(ctx context.Context, params *GetApplicationInput, optFns ...func(*Options)) (*GetApplicationOutput, error)
Gets the specified application.
func (*Client) GetApplicationPolicy ¶
func (c *Client) GetApplicationPolicy(ctx context.Context, params *GetApplicationPolicyInput, optFns ...func(*Options)) (*GetApplicationPolicyOutput, error)
Retrieves the policy for the application.
func (*Client) GetCloudFormationTemplate ¶
func (c *Client) GetCloudFormationTemplate(ctx context.Context, params *GetCloudFormationTemplateInput, optFns ...func(*Options)) (*GetCloudFormationTemplateOutput, error)
Gets the specified AWS CloudFormation template.
func (*Client) ListApplicationDependencies ¶
func (c *Client) ListApplicationDependencies(ctx context.Context, params *ListApplicationDependenciesInput, optFns ...func(*Options)) (*ListApplicationDependenciesOutput, error)
Retrieves the list of applications nested in the containing application.
func (*Client) ListApplicationVersions ¶
func (c *Client) ListApplicationVersions(ctx context.Context, params *ListApplicationVersionsInput, optFns ...func(*Options)) (*ListApplicationVersionsOutput, error)
Lists versions for the specified application.
func (*Client) ListApplications ¶
func (c *Client) ListApplications(ctx context.Context, params *ListApplicationsInput, optFns ...func(*Options)) (*ListApplicationsOutput, error)
Lists applications owned by the requester.
func (*Client) PutApplicationPolicy ¶
func (c *Client) PutApplicationPolicy(ctx context.Context, params *PutApplicationPolicyInput, optFns ...func(*Options)) (*PutApplicationPolicyOutput, error)
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) .
func (*Client) UnshareApplication ¶
func (c *Client) UnshareApplication(ctx context.Context, params *UnshareApplicationInput, optFns ...func(*Options)) (*UnshareApplicationOutput, error)
Unshares an application from an AWS Organization.This operation can be called only from the organization's master account.
func (*Client) UpdateApplication ¶
func (c *Client) UpdateApplication(ctx context.Context, params *UpdateApplicationInput, optFns ...func(*Options)) (*UpdateApplicationOutput, error)
Updates the specified application.
type CreateApplicationInput ¶
type CreateApplicationInput struct { // The description of the application.Minimum length=1. Maximum length=256 Description *string // A valid identifier from https://spdx.org/licenses/ (https://spdx.org/licenses/). SpdxLicenseId *string // The local raw packaged AWS SAM template file of your application. The file has // the format file://<path>/<filename>.You can specify only one of templateBody and // templateUrl; otherwise an error results. TemplateBody *string // The name of the author publishing the app.Minimum length=1. Maximum // length=127.Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$"; Author *string // A link to the S3 object containing the packaged AWS SAM template of your // application.You can specify only one of templateBody and templateUrl; otherwise // an error results. TemplateUrl *string // A URL with more information about the application, for example the location of // your GitHub repository for the application. HomePageUrl *string // A link to the S3 object in Markdown language that contains a more detailed // description of the application and how it works.Maximum size 5 MBYou can specify // only one of readmeBody and readmeUrl; otherwise, an error results. ReadmeUrl *string // A link to the S3 object that contains the license of the app that matches the // spdxLicenseID value of your application.Maximum size 5 MBYou can specify only // one of licenseBody and licenseUrl; otherwise, an error results. LicenseUrl *string // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; Labels []*string // The semantic version of the application: https://semver.org/ // (https://semver.org/) SemanticVersion *string // The name of the application that you want to publish.Minimum length=1. Maximum // length=140Pattern: "[a-zA-Z0-9\\-]+"; Name *string // A local text file that contains the license of the app that matches the // spdxLicenseID value of your application. The file has the format // file://<path>/<filename>.Maximum size 5 MBYou can specify only one of // licenseBody and licenseUrl; otherwise, an error results. LicenseBody *string // A local text readme file in Markdown language that contains a more detailed // description of the application and how it works. The file has the format // file://<path>/<filename>.Maximum size 5 MBYou can specify only one of readmeBody // and readmeUrl; otherwise, an error results. ReadmeBody *string // A link to a public repository for the source code of your application, for // example the URL of a specific GitHub commit. SourceCodeUrl *string // A link to the S3 object that contains the ZIP archive of the source code for // this version of your application.Maximum size 50 MB SourceCodeArchiveUrl *string }
type CreateApplicationOutput ¶
type CreateApplicationOutput struct { // The description of the application.Minimum length=1. Maximum length=256 Description *string // The name of the author publishing the app.Minimum length=1. Maximum // length=127.Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$"; Author *string // The application Amazon Resource Name (ARN). ApplicationId *string // The date and time this resource was created. CreationTime *string // Version information about the application. Version *types.Version // A link to a license file of the app that matches the spdxLicenseID value of your // application.Maximum size 5 MB LicenseUrl *string // A link to the readme file in Markdown language that contains a more detailed // description of the application and how it works.Maximum size 5 MB ReadmeUrl *string // The URL to the public profile of a verified author. This URL is submitted by the // author. VerifiedAuthorUrl *string // Whether the author of this application has been verified. This means means that // AWS has made a good faith review, as a reasonable and prudent service provider, // of the information provided by the requester and has confirmed that the // requester's identity is as claimed. IsVerifiedAuthor *bool // The name of the application.Minimum length=1. Maximum length=140Pattern: // "[a-zA-Z0-9\\-]+"; Name *string // A URL with more information about the application, for example the location of // your GitHub repository for the application. HomePageUrl *string // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; Labels []*string // A valid identifier from https://spdx.org/licenses/. SpdxLicenseId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateApplicationVersionInput ¶
type CreateApplicationVersionInput struct { // The semantic version of the new version. SemanticVersion *string // A link to the packaged AWS SAM template of your application. TemplateUrl *string // A link to the S3 object that contains the ZIP archive of the source code for // this version of your application.Maximum size 50 MB SourceCodeArchiveUrl *string // A link to a public repository for the source code of your application, for // example the URL of a specific GitHub commit. SourceCodeUrl *string // The Amazon Resource Name (ARN) of the application. ApplicationId *string // The raw packaged AWS SAM template of your application. TemplateBody *string }
type CreateApplicationVersionOutput ¶
type CreateApplicationVersionOutput struct { // A link to the S3 object that contains the ZIP archive of the source code for // this version of your application.Maximum size 50 MB SourceCodeArchiveUrl *string // A link to the packaged AWS SAM template of your application. TemplateUrl *string // An array of parameter types supported by the application. ParameterDefinitions []*types.ParameterDefinition // A link to a public repository for the source code of your application, for // example the URL of a specific GitHub commit. SourceCodeUrl *string // The semantic version of the application: https://semver.org/ // (https://semver.org/) SemanticVersion *string // The date and time this resource was created. CreationTime *string // Whether all of the AWS resources contained in this application are supported in // the region in which it is being retrieved. ResourcesSupported *bool // The application Amazon Resource Name (ARN). ApplicationId *string // A list of values that you must specify before you can deploy certain // applications. Some applications might include resources that can affect // permissions in your AWS account, for example, by creating new AWS Identity and // Access Management (IAM) users. For those applications, you must explicitly // acknowledge their capabilities by specifying this parameter.The only valid // values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM, CAPABILITY_RESOURCE_POLICY, and // CAPABILITY_AUTO_EXPAND.The following resources require you to specify // CAPABILITY_IAM or CAPABILITY_NAMED_IAM: AWS::IAM::Group // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html), // AWS::IAM::InstanceProfile // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html), // AWS::IAM::Policy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html), // and AWS::IAM::Role // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html). // If the application contains IAM resources, you can specify either CAPABILITY_IAM // or CAPABILITY_NAMED_IAM. If the application contains IAM resources with custom // names, you must specify CAPABILITY_NAMED_IAM.The following resources require you // to specify CAPABILITY_RESOURCE_POLICY: AWS::Lambda::Permission // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html), // AWS::IAM:Policy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html), // AWS::ApplicationAutoScaling::ScalingPolicy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html), // AWS::S3::BucketPolicy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html), // AWS::SQS::QueuePolicy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html), // and AWS::SNS::TopicPolicy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-policy.html).Applications // that contain one or more nested applications require you to specify // CAPABILITY_AUTO_EXPAND.If your application template contains any of the above // resources, we recommend that you review all permissions associated with the // application before deploying. If you don't specify this parameter for an // application that requires capabilities, the call will fail. RequiredCapabilities []types.Capability // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateCloudFormationChangeSetInput ¶
type CreateCloudFormationChangeSetInput struct { // The UUID returned by CreateCloudFormationTemplate.Pattern: // [0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12} TemplateId *string // This property corresponds to the parameter of the same name for the AWS // CloudFormation CreateChangeSet // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet) // API. ChangeSetName *string // This property corresponds to the parameter of the same name for the AWS // CloudFormation CreateChangeSet // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet) // API. StackName *string // This property corresponds to the parameter of the same name for the AWS // CloudFormation CreateChangeSet // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet) // API. Tags []*types.Tag // This property corresponds to the parameter of the same name for the AWS // CloudFormation CreateChangeSet // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet) // API. RollbackConfiguration *types.RollbackConfiguration // This property corresponds to the parameter of the same name for the AWS // CloudFormation CreateChangeSet // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet) // API. ResourceTypes []*string // A list of values that you must specify before you can deploy certain // applications. Some applications might include resources that can affect // permissions in your AWS account, for example, by creating new AWS Identity and // Access Management (IAM) users. For those applications, you must explicitly // acknowledge their capabilities by specifying this parameter.The only valid // values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM, CAPABILITY_RESOURCE_POLICY, and // CAPABILITY_AUTO_EXPAND.The following resources require you to specify // CAPABILITY_IAM or CAPABILITY_NAMED_IAM: AWS::IAM::Group // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html), // AWS::IAM::InstanceProfile // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html), // AWS::IAM::Policy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html), // and AWS::IAM::Role // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html). // If the application contains IAM resources, you can specify either CAPABILITY_IAM // or CAPABILITY_NAMED_IAM. If the application contains IAM resources with custom // names, you must specify CAPABILITY_NAMED_IAM.The following resources require you // to specify CAPABILITY_RESOURCE_POLICY: AWS::Lambda::Permission // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html), // AWS::IAM:Policy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html), // AWS::ApplicationAutoScaling::ScalingPolicy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html), // AWS::S3::BucketPolicy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html), // AWS::SQS::QueuePolicy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html), // and AWS::SNS:TopicPolicy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-policy.html).Applications // that contain one or more nested applications require you to specify // CAPABILITY_AUTO_EXPAND.If your application template contains any of the above // resources, we recommend that you review all permissions associated with the // application before deploying. If you don't specify this parameter for an // application that requires capabilities, the call will fail. Capabilities []*string // A list of parameter values for the parameters of the application. ParameterOverrides []*types.ParameterValue // This property corresponds to the parameter of the same name for the AWS // CloudFormation CreateChangeSet // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet) // API. Description *string // The semantic version of the application: https://semver.org/ // (https://semver.org/) SemanticVersion *string // This property corresponds to the parameter of the same name for the AWS // CloudFormation CreateChangeSet // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet) // API. ClientToken *string // The Amazon Resource Name (ARN) of the application. ApplicationId *string // This property corresponds to the parameter of the same name for the AWS // CloudFormation CreateChangeSet // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet) // API. NotificationArns []*string }
type CreateCloudFormationChangeSetOutput ¶
type CreateCloudFormationChangeSetOutput struct { // The Amazon Resource Name (ARN) of the change set.Length constraints: Minimum // length of 1.Pattern: ARN:[-a-zA-Z0-9:/]* ChangeSetId *string // The application Amazon Resource Name (ARN). ApplicationId *string // The unique ID of the stack. StackId *string // The semantic version of the application: https://semver.org/ // (https://semver.org/) SemanticVersion *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateCloudFormationTemplateInput ¶
type CreateCloudFormationTemplateInput struct { // The Amazon Resource Name (ARN) of the application. ApplicationId *string // The semantic version of the application: https://semver.org/ // (https://semver.org/) SemanticVersion *string }
type CreateCloudFormationTemplateOutput ¶
type CreateCloudFormationTemplateOutput struct { // The date and time this template expires. Templates expire 1 hour after creation. ExpirationTime *string // Status of the template creation workflow.Possible values: PREPARING | ACTIVE | // EXPIRED Status types.Status // The UUID returned by CreateCloudFormationTemplate.Pattern: // [0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12} TemplateId *string // The date and time this resource was created. CreationTime *string // The application Amazon Resource Name (ARN). ApplicationId *string // The semantic version of the application: https://semver.org/ // (https://semver.org/) SemanticVersion *string // A link to the template that can be used to deploy the application using AWS // CloudFormation. TemplateUrl *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteApplicationInput ¶
type DeleteApplicationInput struct { // The Amazon Resource Name (ARN) of the application. ApplicationId *string }
type DeleteApplicationOutput ¶
type DeleteApplicationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type EndpointResolver ¶
type EndpointResolver interface { ResolveEndpoint(region string, options ResolverOptions) (aws.Endpoint, error) }
EndpointResolver interface for resolving service endpoints.
func WithEndpointResolver ¶
func WithEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver
WithEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided fallbackResolver for resolution. awsResolver and fallbackResolver must not be nil
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options ResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options ResolverOptions) (endpoint aws.Endpoint, err error)
type GetApplicationInput ¶
type GetApplicationInput struct { // The semantic version of the application to get. SemanticVersion *string // The Amazon Resource Name (ARN) of the application. ApplicationId *string }
type GetApplicationOutput ¶
type GetApplicationOutput struct { // The URL to the public profile of a verified author. This URL is submitted by the // author. VerifiedAuthorUrl *string // A link to the readme file in Markdown language that contains a more detailed // description of the application and how it works.Maximum size 5 MB ReadmeUrl *string // The application Amazon Resource Name (ARN). ApplicationId *string // A link to a license file of the app that matches the spdxLicenseID value of your // application.Maximum size 5 MB LicenseUrl *string // Whether the author of this application has been verified. This means means that // AWS has made a good faith review, as a reasonable and prudent service provider, // of the information provided by the requester and has confirmed that the // requester's identity is as claimed. IsVerifiedAuthor *bool // The date and time this resource was created. CreationTime *string // Version information about the application. Version *types.Version // A valid identifier from https://spdx.org/licenses/. SpdxLicenseId *string // The description of the application.Minimum length=1. Maximum length=256 Description *string // The name of the application.Minimum length=1. Maximum length=140Pattern: // "[a-zA-Z0-9\\-]+"; Name *string // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; Labels []*string // The name of the author publishing the app.Minimum length=1. Maximum // length=127.Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$"; Author *string // A URL with more information about the application, for example the location of // your GitHub repository for the application. HomePageUrl *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetApplicationPolicyInput ¶
type GetApplicationPolicyInput struct { // The Amazon Resource Name (ARN) of the application. ApplicationId *string }
type GetApplicationPolicyOutput ¶
type GetApplicationPolicyOutput struct { // An array of policy statements applied to the application. Statements []*types.ApplicationPolicyStatement // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetCloudFormationTemplateInput ¶
type GetCloudFormationTemplateInput struct { // The Amazon Resource Name (ARN) of the application. ApplicationId *string // The UUID returned by CreateCloudFormationTemplate.Pattern: // [0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12} TemplateId *string }
type GetCloudFormationTemplateOutput ¶
type GetCloudFormationTemplateOutput struct { // The semantic version of the application: https://semver.org/ // (https://semver.org/) SemanticVersion *string // The date and time this resource was created. CreationTime *string // The UUID returned by CreateCloudFormationTemplate.Pattern: // [0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12} TemplateId *string // The application Amazon Resource Name (ARN). ApplicationId *string // Status of the template creation workflow.Possible values: PREPARING | ACTIVE | // EXPIRED Status types.Status // A link to the template that can be used to deploy the application using AWS // CloudFormation. TemplateUrl *string // The date and time this template expires. Templates expire 1 hour after creation. ExpirationTime *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type HTTPClient ¶
type HTTPSignerV4 ¶
type HTTPSignerV4 interface { SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time) error }
type ListApplicationDependenciesInput ¶
type ListApplicationDependenciesInput struct { // The total number of items to return. MaxItems *int32 // The Amazon Resource Name (ARN) of the application. ApplicationId *string // A token to specify where to start paginating. NextToken *string // The semantic version of the application to get. SemanticVersion *string }
type ListApplicationDependenciesOutput ¶
type ListApplicationDependenciesOutput struct { // An array of application summaries nested in the application. Dependencies []*types.ApplicationDependencySummary // The token to request the next page of results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListApplicationVersionsInput ¶
type ListApplicationVersionsInput struct { // The total number of items to return. MaxItems *int32 // The Amazon Resource Name (ARN) of the application. ApplicationId *string // A token to specify where to start paginating. NextToken *string }
type ListApplicationVersionsOutput ¶
type ListApplicationVersionsOutput struct { // The token to request the next page of results. NextToken *string // An array of version summaries for the application. Versions []*types.VersionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListApplicationsInput ¶
type ListApplicationsInput struct { // A token to specify where to start paginating. NextToken *string // The total number of items to return. MaxItems *int32 }
type ListApplicationsOutput ¶
type ListApplicationsOutput struct { // An array of application summaries. Applications []*types.ApplicationSummary // The token to request the next page of results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions ResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The region to send requests to. (Required) Region string // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. Retryer retry.Retryer // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient }
func (Options) Copy ¶
Copy creates a clone where the APIOptions list is deep copied.
func (Options) GetCredentials ¶
func (o Options) GetCredentials() aws.CredentialsProvider
func (Options) GetEndpointOptions ¶
func (o Options) GetEndpointOptions() ResolverOptions
func (Options) GetEndpointResolver ¶
func (o Options) GetEndpointResolver() EndpointResolver
func (Options) GetHTTPSignerV4 ¶
func (o Options) GetHTTPSignerV4() HTTPSignerV4
func (Options) GetRegion ¶
func (Options) GetRetryer ¶
type PutApplicationPolicyInput ¶
type PutApplicationPolicyInput struct { // An array of policy statements applied to the application. Statements []*types.ApplicationPolicyStatement // The Amazon Resource Name (ARN) of the application. ApplicationId *string }
type PutApplicationPolicyOutput ¶
type PutApplicationPolicyOutput struct { // An array of policy statements applied to the application. Statements []*types.ApplicationPolicyStatement // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options ResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type ResolveEndpointMiddlewareOptions ¶
type ResolveEndpointMiddlewareOptions interface { GetEndpointResolver() EndpointResolver GetEndpointOptions() ResolverOptions }
type ResolverOptions ¶
type ResolverOptions = internalendpoints.Options
ResolverOptions is the service endpoint resolver options
type UnshareApplicationInput ¶
type UnshareApplicationInput struct { // The AWS Organization ID to unshare the application from. *string // The Amazon Resource Name (ARN) of the application. *string }
type UnshareApplicationOutput ¶
type UnshareApplicationOutput struct { // Metadata pertaining to the operation's result. middleware.Metadata }
type UpdateApplicationInput ¶
type UpdateApplicationInput struct { // The Amazon Resource Name (ARN) of the application. ApplicationId *string // The name of the author publishing the app.Minimum length=1. Maximum // length=127.Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$"; Author *string // The description of the application.Minimum length=1. Maximum length=256 Description *string // A link to the readme file in Markdown language that contains a more detailed // description of the application and how it works.Maximum size 5 MB ReadmeUrl *string // A text readme file in Markdown language that contains a more detailed // description of the application and how it works.Maximum size 5 MB ReadmeBody *string // A URL with more information about the application, for example the location of // your GitHub repository for the application. HomePageUrl *string // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; Labels []*string }
type UpdateApplicationOutput ¶
type UpdateApplicationOutput struct { // The date and time this resource was created. CreationTime *string // The application Amazon Resource Name (ARN). ApplicationId *string // The name of the author publishing the app.Minimum length=1. Maximum // length=127.Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$"; Author *string // The URL to the public profile of a verified author. This URL is submitted by the // author. VerifiedAuthorUrl *string // Version information about the application. Version *types.Version // The name of the application.Minimum length=1. Maximum length=140Pattern: // "[a-zA-Z0-9\\-]+"; Name *string // A link to a license file of the app that matches the spdxLicenseID value of your // application.Maximum size 5 MB LicenseUrl *string // Whether the author of this application has been verified. This means means that // AWS has made a good faith review, as a reasonable and prudent service provider, // of the information provided by the requester and has confirmed that the // requester's identity is as claimed. IsVerifiedAuthor *bool // A link to the readme file in Markdown language that contains a more detailed // description of the application and how it works.Maximum size 5 MB ReadmeUrl *string // The description of the application.Minimum length=1. Maximum length=256 Description *string // A valid identifier from https://spdx.org/licenses/. SpdxLicenseId *string // A URL with more information about the application, for example the location of // your GitHub repository for the application. HomePageUrl *string // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; Labels []*string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Source Files ¶
api_client.go api_op_CreateApplication.go api_op_CreateApplicationVersion.go api_op_CreateCloudFormationChangeSet.go api_op_CreateCloudFormationTemplate.go api_op_DeleteApplication.go api_op_GetApplication.go api_op_GetApplicationPolicy.go api_op_GetCloudFormationTemplate.go api_op_ListApplicationDependencies.go api_op_ListApplicationVersions.go api_op_ListApplications.go api_op_PutApplicationPolicy.go api_op_UnshareApplication.go api_op_UpdateApplication.go deserializers.go endpoints.go serializers.go validators.go
Directories ¶
Path | Synopsis |
---|---|
internal | |
types |
- Version
- v0.1.0
- Published
- Sep 29, 2020
- Platform
- darwin/amd64
- Imports
- 25 packages
- Last checked
- now –
Tools for package owners.