Struct aws_sdk_serverlessapplicationrepository::operation::create_application::CreateApplicationInput
source · #[non_exhaustive]pub struct CreateApplicationInput {Show 15 fields
pub author: Option<String>,
pub description: Option<String>,
pub home_page_url: Option<String>,
pub labels: Option<Vec<String>>,
pub license_body: Option<String>,
pub license_url: Option<String>,
pub name: Option<String>,
pub readme_body: Option<String>,
pub readme_url: Option<String>,
pub semantic_version: Option<String>,
pub source_code_archive_url: Option<String>,
pub source_code_url: Option<String>,
pub spdx_license_id: Option<String>,
pub template_body: Option<String>,
pub template_url: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.The name of the author publishing the app.
Minimum length=1. Maximum length=127.
Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";
description: Option<String>
The description of the application.
Minimum length=1. Maximum length=256
home_page_url: Option<String>
A URL with more information about the application, for example the location of your GitHub repository for the application.
labels: Option<Vec<String>>
Labels to improve discovery of apps in search results.
Minimum length=1. Maximum length=127. Maximum number of labels: 10
Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$";
license_body: Option<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 MB
You can specify only one of licenseBody and licenseUrl; otherwise, an error results.
license_url: Option<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 MB
You can specify only one of licenseBody and licenseUrl; otherwise, an error results.
name: Option<String>
The name of the application that you want to publish.
Minimum length=1. Maximum length=140
Pattern: "[a-zA-Z0-9\\-]+";
readme_body: Option<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 MB
You can specify only one of readmeBody and readmeUrl; otherwise, an error results.
readme_url: Option<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 MB
You can specify only one of readmeBody and readmeUrl; otherwise, an error results.
semantic_version: Option<String>
The semantic version of the application:
source_code_archive_url: Option<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
source_code_url: Option<String>
A link to a public repository for the source code of your application, for example the URL of a specific GitHub commit.
spdx_license_id: Option<String>
A valid identifier from https://spdx.org/licenses/.
template_body: Option<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.
template_url: Option<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.
Implementations§
source§impl CreateApplicationInput
impl CreateApplicationInput
The name of the author publishing the app.
Minimum length=1. Maximum length=127.
Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the application.
Minimum length=1. Maximum length=256
sourcepub fn home_page_url(&self) -> Option<&str>
pub fn home_page_url(&self) -> Option<&str>
A URL with more information about the application, for example the location of your GitHub repository for the application.
sourcepub fn labels(&self) -> &[String]
pub fn labels(&self) -> &[String]
Labels to improve discovery of apps in search results.
Minimum length=1. Maximum length=127. Maximum number of labels: 10
Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$";
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .labels.is_none()
.
sourcepub fn license_body(&self) -> Option<&str>
pub fn license_body(&self) -> Option<&str>
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 MB
You can specify only one of licenseBody and licenseUrl; otherwise, an error results.
sourcepub fn license_url(&self) -> Option<&str>
pub fn license_url(&self) -> Option<&str>
A link to the S3 object that contains the license of the app that matches the spdxLicenseID value of your application.
Maximum size 5 MB
You can specify only one of licenseBody and licenseUrl; otherwise, an error results.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the application that you want to publish.
Minimum length=1. Maximum length=140
Pattern: "[a-zA-Z0-9\\-]+";
sourcepub fn readme_body(&self) -> Option<&str>
pub fn readme_body(&self) -> Option<&str>
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 MB
You can specify only one of readmeBody and readmeUrl; otherwise, an error results.
sourcepub fn readme_url(&self) -> Option<&str>
pub fn readme_url(&self) -> Option<&str>
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 MB
You can specify only one of readmeBody and readmeUrl; otherwise, an error results.
sourcepub fn semantic_version(&self) -> Option<&str>
pub fn semantic_version(&self) -> Option<&str>
The semantic version of the application:
sourcepub fn source_code_archive_url(&self) -> Option<&str>
pub fn source_code_archive_url(&self) -> Option<&str>
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
sourcepub fn source_code_url(&self) -> Option<&str>
pub fn source_code_url(&self) -> Option<&str>
A link to a public repository for the source code of your application, for example the URL of a specific GitHub commit.
sourcepub fn spdx_license_id(&self) -> Option<&str>
pub fn spdx_license_id(&self) -> Option<&str>
A valid identifier from https://spdx.org/licenses/.
sourcepub fn template_body(&self) -> Option<&str>
pub fn template_body(&self) -> Option<&str>
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.
sourcepub fn template_url(&self) -> Option<&str>
pub fn template_url(&self) -> Option<&str>
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.
source§impl CreateApplicationInput
impl CreateApplicationInput
sourcepub fn builder() -> CreateApplicationInputBuilder
pub fn builder() -> CreateApplicationInputBuilder
Creates a new builder-style object to manufacture CreateApplicationInput
.
Trait Implementations§
source§impl Clone for CreateApplicationInput
impl Clone for CreateApplicationInput
source§fn clone(&self) -> CreateApplicationInput
fn clone(&self) -> CreateApplicationInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateApplicationInput
impl Debug for CreateApplicationInput
source§impl PartialEq for CreateApplicationInput
impl PartialEq for CreateApplicationInput
source§fn eq(&self, other: &CreateApplicationInput) -> bool
fn eq(&self, other: &CreateApplicationInput) -> bool
self
and other
values to be equal, and is used
by ==
.