Class CfnWorkload
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.wellarchitected.CfnWorkload
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IWorkloadRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:21.075Z")
@Stability(Stable)
public class CfnWorkload
extends CfnResource
implements IInspectable, IWorkloadRef, ITaggableV2
Definition of AWS::WellArchitected::Workload Resource Type.
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.wellarchitected.*;
CfnWorkload cfnWorkload = CfnWorkload.Builder.create(this, "MyCfnWorkload")
.description("description")
.environment("environment")
.lenses(List.of("lenses"))
.workloadName("workloadName")
// the properties below are optional
.accountIds(List.of("accountIds"))
.architecturalDesign("architecturalDesign")
.awsRegions(List.of("awsRegions"))
.discoveryConfig(DiscoveryConfigProperty.builder()
.trustedAdvisorIntegrationStatus("trustedAdvisorIntegrationStatus")
.workloadResourceDefinition(List.of("workloadResourceDefinition"))
.build())
.industry("industry")
.industryType("industryType")
.nonAwsRegions(List.of("nonAwsRegions"))
.notes("notes")
.reviewOwner("reviewOwner")
.tags(List.of(TagsItemsProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnWorkload.static interfaceDiscovery configuration associated to the workload.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested 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$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.wellarchitected.IWorkloadRef
IWorkloadRef.Jsii$Default, IWorkloadRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnWorkload(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWorkload(software.amazon.jsii.JsiiObjectRef objRef) CfnWorkload(software.constructs.Construct scope, String id, CfnWorkloadProps props) Create a newAWS::WellArchitected::Workload. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForWorkload(IWorkloadRef resource) The list of Amazon Web Services account IDs associated with the workload.The URL of the architectural design for the workload.The improvement status for a workload.The ARN for the workload.The ID assigned to the workload.The list of Amazon Web Services Regions associated with the workload.Tag Manager which manages the tags for this resource.The description for the workload.Discovery configuration associated to the workload.The environment for the workload.The industry for the workload.The industry type for the workload.The list of lenses associated with the workload.The list of non-Amazon Web Services Regions associated with the workload.getNotes()The notes associated with the workload.The review owner of the workload.getTags()The tags associated with the workload.The name of the workload.A reference to a Workload resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnWorkload.renderProperties(Map<String, Object> props) voidsetAccountIds(List<String> value) The list of Amazon Web Services account IDs associated with the workload.voidsetArchitecturalDesign(String value) The URL of the architectural design for the workload.voidsetAwsRegions(List<String> value) The list of Amazon Web Services Regions associated with the workload.voidsetDescription(String value) The description for the workload.voidsetDiscoveryConfig(IResolvable value) Discovery configuration associated to the workload.voidDiscovery configuration associated to the workload.voidsetEnvironment(String value) The environment for the workload.voidsetIndustry(String value) The industry for the workload.voidsetIndustryType(String value) The industry type for the workload.voidThe list of lenses associated with the workload.voidsetNonAwsRegions(List<String> value) The list of non-Amazon Web Services Regions associated with the workload.voidThe notes associated with the workload.voidsetReviewOwner(String value) The review owner of the workload.voidsetTags(List<CfnWorkload.TagsItemsProperty> value) The tags associated with the workload.voidsetWorkloadName(String value) The name of the workload.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
-
CfnWorkload
protected CfnWorkload(software.amazon.jsii.JsiiObjectRef objRef) -
CfnWorkload
protected CfnWorkload(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnWorkload
@Stability(Stable) public CfnWorkload(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnWorkloadProps props) Create a newAWS::WellArchitected::Workload.- 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
-
arnForWorkload
- Parameters:
resource- This parameter is required.
-
isCfnWorkload
Checks whether the given object is a CfnWorkload.- 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.
-
getAttrImprovementStatus
The improvement status for a workload. -
getAttrWorkloadArn
The ARN for the workload. -
getAttrWorkloadId
The ID assigned to the workload. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getWorkloadRef
A reference to a Workload resource.- Specified by:
getWorkloadRefin interfaceIWorkloadRef
-
getDescription
The description for the workload. -
setDescription
The description for the workload. -
getEnvironment
The environment for the workload. -
setEnvironment
The environment for the workload. -
getLenses
The list of lenses associated with the workload. -
setLenses
The list of lenses associated with the workload. -
getWorkloadName
The name of the workload. -
setWorkloadName
The name of the workload. -
getAccountIds
The list of Amazon Web Services account IDs associated with the workload. -
setAccountIds
The list of Amazon Web Services account IDs associated with the workload. -
getArchitecturalDesign
The URL of the architectural design for the workload. -
setArchitecturalDesign
The URL of the architectural design for the workload. -
getAwsRegions
The list of Amazon Web Services Regions associated with the workload. -
setAwsRegions
The list of Amazon Web Services Regions associated with the workload. -
getDiscoveryConfig
Discovery configuration associated to the workload.Returns union: either
IResolvableorCfnWorkload.DiscoveryConfigProperty -
setDiscoveryConfig
Discovery configuration associated to the workload. -
setDiscoveryConfig
@Stability(Stable) public void setDiscoveryConfig(@Nullable CfnWorkload.DiscoveryConfigProperty value) Discovery configuration associated to the workload. -
getIndustry
The industry for the workload. -
setIndustry
The industry for the workload. -
getIndustryType
The industry type for the workload. -
setIndustryType
The industry type for the workload. -
getNonAwsRegions
The list of non-Amazon Web Services Regions associated with the workload. -
setNonAwsRegions
The list of non-Amazon Web Services Regions associated with the workload. -
getNotes
The notes associated with the workload. -
setNotes
The notes associated with the workload. -
getReviewOwner
The review owner of the workload. -
setReviewOwner
The review owner of the workload. -
getTags
The tags associated with the workload. -
setTags
The tags associated with the workload.
-