#[non_exhaustive]pub struct Version {
pub application_id: Option<String>,
pub creation_time: Option<String>,
pub parameter_definitions: Option<Vec<ParameterDefinition>>,
pub required_capabilities: Option<Vec<Capability>>,
pub resources_supported: bool,
pub semantic_version: Option<String>,
pub source_code_archive_url: Option<String>,
pub source_code_url: Option<String>,
pub template_url: Option<String>,
}
Expand description
Application version details.
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.application_id: Option<String>
The application Amazon Resource Name (ARN).
creation_time: Option<String>
The date and time this resource was created.
parameter_definitions: Option<Vec<ParameterDefinition>>
An array of parameter types supported by the application.
required_capabilities: Option<Vec<Capability>>
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, AWS::IAM::InstanceProfile, AWS::IAM::Policy, and AWS::IAM::Role. 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, AWS::IAM:Policy, AWS::ApplicationAutoScaling::ScalingPolicy, AWS::S3::BucketPolicy, AWS::SQS::QueuePolicy, and AWS::SNS::TopicPolicy.
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.
resources_supported: bool
Whether all of the AWS resources contained in this application are supported in the region in which it is being retrieved.
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.
template_url: Option<String>
A link to the packaged AWS SAM template of your application.
Implementations
sourceimpl Version
impl Version
sourcepub fn application_id(&self) -> Option<&str>
pub fn application_id(&self) -> Option<&str>
The application Amazon Resource Name (ARN).
sourcepub fn creation_time(&self) -> Option<&str>
pub fn creation_time(&self) -> Option<&str>
The date and time this resource was created.
sourcepub fn parameter_definitions(&self) -> Option<&[ParameterDefinition]>
pub fn parameter_definitions(&self) -> Option<&[ParameterDefinition]>
An array of parameter types supported by the application.
sourcepub fn required_capabilities(&self) -> Option<&[Capability]>
pub fn required_capabilities(&self) -> Option<&[Capability]>
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, AWS::IAM::InstanceProfile, AWS::IAM::Policy, and AWS::IAM::Role. 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, AWS::IAM:Policy, AWS::ApplicationAutoScaling::ScalingPolicy, AWS::S3::BucketPolicy, AWS::SQS::QueuePolicy, and AWS::SNS::TopicPolicy.
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.
sourcepub fn resources_supported(&self) -> bool
pub fn resources_supported(&self) -> bool
Whether all of the AWS resources contained in this application are supported in the region in which it is being retrieved.
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 template_url(&self) -> Option<&str>
pub fn template_url(&self) -> Option<&str>
A link to the packaged AWS SAM template of your application.
Trait Implementations
impl StructuralPartialEq for Version
Auto Trait Implementations
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more