Class CfnApplication
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.serverlessrepo.CfnApplication
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IApplicationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:19.227Z")
@Stability(Stable)
public class CfnApplication
extends CfnResource
implements IInspectable, IApplicationRef
Resource type definition for an AWS Serverless Application Repository application.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.serverlessrepo.*;
CfnApplication cfnApplication = CfnApplication.Builder.create(this, "MyCfnApplication")
.author("author")
.description("description")
.name("name")
// the properties below are optional
.homePageUrl("homePageUrl")
.labels(List.of("labels"))
.licenseBody("licenseBody")
.readmeBody("readmeBody")
.semanticVersion("semanticVersion")
.sourceCodeUrl("sourceCodeUrl")
.spdxLicenseId("spdxLicenseId")
.templateBody("templateBody")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.serverlessrepo.IApplicationRef
IApplicationRef.Jsii$Default, IApplicationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApplication(software.amazon.jsii.JsiiObjectRef objRef) CfnApplication(software.constructs.Construct scope, String id, CfnApplicationProps props) Create a newAWS::ServerlessRepo::Application. -
Method Summary
Modifier and TypeMethodDescriptionA reference to a Application resource.The Amazon Resource Name (ARN) of the application.The date and time this resource was created.Whether the author of this application has been verified.The name of the author publishing the app.The description of the application.A URL with more information about the application.Labels to improve discovery of apps in search results.A local text file that contains the license of the app.getName()The name of the application.A text readme file in Markdown language that contains a more detailed description of the application.The semantic version of the application.A link to a public repository for the source code of your application.A valid identifier from https://spdx.org/licenses/.The local raw packaged AWS SAM template file of your application.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnApplication.renderProperties(Map<String, Object> props) voidThe name of the author publishing the app.voidsetDescription(String value) The description of the application.voidsetHomePageUrl(String value) A URL with more information about the application.voidLabels to improve discovery of apps in search results.voidsetLicenseBody(String value) A local text file that contains the license of the app.voidThe name of the application.voidsetReadmeBody(String value) A text readme file in Markdown language that contains a more detailed description of the application.voidsetSemanticVersion(String value) The semantic version of the application.voidsetSourceCodeUrl(String value) A link to a public repository for the source code of your application.voidsetSpdxLicenseId(String value) A valid identifier from https://spdx.org/licenses/.voidsetTemplateBody(String value) The local raw packaged AWS SAM template file of your application.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnApplication
protected CfnApplication(software.amazon.jsii.JsiiObjectRef objRef) -
CfnApplication
protected CfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnApplication
@Stability(Stable) public CfnApplication(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnApplicationProps props) Create a newAWS::ServerlessRepo::Application.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnApplication
Checks whether the given object is a CfnApplication.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getApplicationRef
A reference to a Application resource.- Specified by:
getApplicationRefin interfaceIApplicationRef
-
getAttrApplicationId
The Amazon Resource Name (ARN) of the application. -
getAttrCreationTime
The date and time this resource was created. -
getAttrIsVerifiedAuthor
Whether the author of this application has been verified. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getAuthor
The name of the author publishing the app. -
setAuthor
The name of the author publishing the app. -
getDescription
The description of the application. -
setDescription
The description of the application. -
getName
The name of the application. -
setName
The name of the application. -
getHomePageUrl
A URL with more information about the application. -
setHomePageUrl
A URL with more information about the application. -
getLabels
Labels to improve discovery of apps in search results. -
setLabels
Labels to improve discovery of apps in search results. -
getLicenseBody
A local text file that contains the license of the app. -
setLicenseBody
A local text file that contains the license of the app. -
getReadmeBody
A text readme file in Markdown language that contains a more detailed description of the application. -
setReadmeBody
A text readme file in Markdown language that contains a more detailed description of the application. -
getSemanticVersion
The semantic version of the application. -
setSemanticVersion
The semantic version of the application. -
getSourceCodeUrl
A link to a public repository for the source code of your application. -
setSourceCodeUrl
A link to a public repository for the source code of your application. -
getSpdxLicenseId
A valid identifier from https://spdx.org/licenses/. -
setSpdxLicenseId
A valid identifier from https://spdx.org/licenses/. -
getTemplateBody
The local raw packaged AWS SAM template file of your application. -
setTemplateBody
The local raw packaged AWS SAM template file of your application.
-