@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-21T20:28:58.682Z") @Stability(value=Stable) public class CfnApplication extends CfnResource implements IInspectable
The AWS::CodeDeploy::Application
resource creates an AWS CodeDeploy application. In CodeDeploy , an application is a name that functions as a container to ensure that the correct combination of revision, deployment configuration, and deployment group are referenced during a deployment. You can use the AWS::CodeDeploy::DeploymentGroup
resource to associate the application with a CodeDeploy deployment group. For more information, see CodeDeploy Deployments in the AWS CodeDeploy User Guide .
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.codedeploy.*; CfnApplication cfnApplication = CfnApplication.Builder.create(this, "MyCfnApplication") .applicationName("applicationName") .computePlatform("computePlatform") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnApplication.Builder
A fluent builder for
CfnApplication . |
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Modifier and Type | Field and Description |
---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnApplication(software.constructs.Construct scope,
String id)
Create a new `AWS::CodeDeploy::Application`.
|
|
CfnApplication(software.constructs.Construct scope,
String id,
CfnApplicationProps props)
Create a new `AWS::CodeDeploy::Application`.
|
protected |
CfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnApplication(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
String |
getApplicationName()
A name for the application.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getComputePlatform()
The compute platform that CodeDeploy deploys the application to.
|
TagManager |
getTags()
The metadata that you apply to CodeDeploy applications to help you organize and categorize them.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApplicationName(String value)
A name for the application.
|
void |
setComputePlatform(String value)
The compute platform that CodeDeploy deploys the application to.
|
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnApplication(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnApplication(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnApplicationProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties.@Stability(value=Stable) public CfnApplication(@NotNull software.constructs.Construct scope, @NotNull String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.@Stability(value=Stable) public void inspect(@NotNull TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @NotNull public TagManager getTags()
Each tag consists of a key and an optional value, both of which you define.
@Stability(value=Stable) @Nullable public String getApplicationName()
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the application name. For more information, see Name Type .
Updates to
ApplicationName
are not supported.
@Stability(value=Stable) public void setApplicationName(@Nullable String value)
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the application name. For more information, see Name Type .
Updates to
ApplicationName
are not supported.
@Stability(value=Stable) @Nullable public String getComputePlatform()
@Stability(value=Stable) public void setComputePlatform(@Nullable String value)
Copyright © 2022. All rights reserved.