Class CfnApplication

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::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

      @Stability(Stable) @NotNull public static Boolean isCfnApplication(@NotNull Object x)
      Checks whether the given object is a CfnApplication.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getApplicationRef

      @Stability(Stable) @NotNull public ApplicationReference getApplicationRef()
      A reference to a Application resource.
      Specified by:
      getApplicationRef in interface IApplicationRef
    • getAttrApplicationId

      @Stability(Stable) @NotNull public String getAttrApplicationId()
      The Amazon Resource Name (ARN) of the application.
    • getAttrCreationTime

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      The date and time this resource was created.
    • getAttrIsVerifiedAuthor

      @Stability(Stable) @NotNull public IResolvable getAttrIsVerifiedAuthor()
      Whether the author of this application has been verified.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getAuthor

      @Stability(Stable) @NotNull public String getAuthor()
      The name of the author publishing the app.
    • setAuthor

      @Stability(Stable) public void setAuthor(@NotNull String value)
      The name of the author publishing the app.
    • getDescription

      @Stability(Stable) @NotNull public String getDescription()
      The description of the application.
    • setDescription

      @Stability(Stable) public void setDescription(@NotNull String value)
      The description of the application.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the application.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the application.
    • getHomePageUrl

      @Stability(Stable) @Nullable public String getHomePageUrl()
      A URL with more information about the application.
    • setHomePageUrl

      @Stability(Stable) public void setHomePageUrl(@Nullable String value)
      A URL with more information about the application.
    • getLabels

      @Stability(Stable) @Nullable public List<String> getLabels()
      Labels to improve discovery of apps in search results.
    • setLabels

      @Stability(Stable) public void setLabels(@Nullable List<String> value)
      Labels to improve discovery of apps in search results.
    • getLicenseBody

      @Stability(Stable) @Nullable public String getLicenseBody()
      A local text file that contains the license of the app.
    • setLicenseBody

      @Stability(Stable) public void setLicenseBody(@Nullable String value)
      A local text file that contains the license of the app.
    • getReadmeBody

      @Stability(Stable) @Nullable public String getReadmeBody()
      A text readme file in Markdown language that contains a more detailed description of the application.
    • setReadmeBody

      @Stability(Stable) public void setReadmeBody(@Nullable String value)
      A text readme file in Markdown language that contains a more detailed description of the application.
    • getSemanticVersion

      @Stability(Stable) @Nullable public String getSemanticVersion()
      The semantic version of the application.
    • setSemanticVersion

      @Stability(Stable) public void setSemanticVersion(@Nullable String value)
      The semantic version of the application.
    • getSourceCodeUrl

      @Stability(Stable) @Nullable public String getSourceCodeUrl()
      A link to a public repository for the source code of your application.
    • setSourceCodeUrl

      @Stability(Stable) public void setSourceCodeUrl(@Nullable String value)
      A link to a public repository for the source code of your application.
    • getSpdxLicenseId

      @Stability(Stable) @Nullable public String getSpdxLicenseId()
      A valid identifier from https://spdx.org/licenses/.
    • setSpdxLicenseId

      @Stability(Stable) public void setSpdxLicenseId(@Nullable String value)
      A valid identifier from https://spdx.org/licenses/.
    • getTemplateBody

      @Stability(Stable) @Nullable public String getTemplateBody()
      The local raw packaged AWS SAM template file of your application.
    • setTemplateBody

      @Stability(Stable) public void setTemplateBody(@Nullable String value)
      The local raw packaged AWS SAM template file of your application.