Class CfnAgentProfile
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.CfnAgentProfile
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IAgentProfileRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:05:03.314Z")
@Stability(Stable)
public class CfnAgentProfile
extends CfnResource
implements IInspectable, IAgentProfileRef, ITaggableV2
Resource Type definition for AWS::WellArchitected::AgentProfile.
An Agent Profile defines the execution role, account/region scope (via aggregation configuration access roles), and Well-Architected pillar focus used to generate Well-Architected Agent recommendations.
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.*;
CfnAgentProfile cfnAgentProfile = CfnAgentProfile.Builder.create(this, "MyCfnAgentProfile")
.aggregationConfiguration(List.of(AggregationConfigurationProperty.builder()
.accessRoleArn("accessRoleArn")
.accountId("accountId")
.regions(List.of("regions"))
.build()))
.executionRoleArn("executionRoleArn")
.name("name")
.pillars(List.of("pillars"))
// the properties below are optional
.businessOverview("businessOverview")
.deletionProtection(false)
.description("description")
.displayName("displayName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefines an account, its in-scope regions, and the access role used to reach resources in that account.static final classA fluent builder forCfnAgentProfile.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.wellarchitected.IAgentProfileRef
IAgentProfileRef.Jsii$Default, IAgentProfileRef.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$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAgentProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAgentProfile(software.amazon.jsii.JsiiObjectRef objRef) CfnAgentProfile(software.constructs.Construct scope, String id, CfnAgentProfileProps props) Create a newAWS::WellArchitected::AgentProfile. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForAgentProfile(IAgentProfileRef resource) A reference to a AgentProfile resource.The aggregation configuration entries (account, regions, access role) associated with this profile.The Amazon Resource Name (ARN) of the Agent Profile.The timestamp when the profile was created.The identifier of the system or user that created this profile.The timestamp when the profile was last modified.The identifier of the system or user that last modified this profile.A business overview for the profile used to improve recommendation quality.Tag Manager which manages the tags for this resource.Whether deletion protection is enabled for the profile.A description of the profile.The human-readable display name of the profile.The ARN of the IAM role assumed to execute recommendation actions.getName()The name of the profile.The list of Well-Architected pillars to focus on.getTags()Key-value pairs to associate with the Agent Profile.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnAgentProfile.renderProperties(Map<String, Object> props) voidsetAggregationConfiguration(List<Object> value) The aggregation configuration entries (account, regions, access role) associated with this profile.voidThe aggregation configuration entries (account, regions, access role) associated with this profile.voidsetBusinessOverview(String value) A business overview for the profile used to improve recommendation quality.voidsetDeletionProtection(Boolean value) Whether deletion protection is enabled for the profile.voidsetDeletionProtection(IResolvable value) Whether deletion protection is enabled for the profile.voidsetDescription(String value) A description of the profile.voidsetDisplayName(String value) The human-readable display name of the profile.voidsetExecutionRoleArn(String value) The ARN of the IAM role assumed to execute recommendation actions.voidThe name of the profile.voidsetPillars(List<String> value) The list of Well-Architected pillars to focus on.voidKey-value pairs to associate with the Agent Profile.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
-
CfnAgentProfile
protected CfnAgentProfile(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAgentProfile
protected CfnAgentProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAgentProfile
@Stability(Stable) public CfnAgentProfile(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAgentProfileProps props) Create a newAWS::WellArchitected::AgentProfile.- 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
-
arnForAgentProfile
@Stability(Stable) @NotNull public static String arnForAgentProfile(@NotNull IAgentProfileRef resource) - Parameters:
resource- This parameter is required.
-
isCfnAgentProfile
Checks whether the given object is a CfnAgentProfile.- 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.
-
getAgentProfileRef
A reference to a AgentProfile resource.- Specified by:
getAgentProfileRefin interfaceIAgentProfileRef
-
getAttrArn
The Amazon Resource Name (ARN) of the Agent Profile. -
getAttrCreatedAt
The timestamp when the profile was created. -
getAttrCreatedBy
The identifier of the system or user that created this profile. -
getAttrLastModifiedAt
The timestamp when the profile was last modified. -
getAttrLastModifiedBy
The identifier of the system or user that last modified this profile. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getAggregationConfiguration
The aggregation configuration entries (account, regions, access role) associated with this profile.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAgentProfile.AggregationConfigurationProperty> -
setAggregationConfiguration
The aggregation configuration entries (account, regions, access role) associated with this profile. -
setAggregationConfiguration
The aggregation configuration entries (account, regions, access role) associated with this profile. -
getExecutionRoleArn
The ARN of the IAM role assumed to execute recommendation actions. -
setExecutionRoleArn
The ARN of the IAM role assumed to execute recommendation actions. -
getName
The name of the profile. -
setName
The name of the profile. -
getPillars
The list of Well-Architected pillars to focus on. -
setPillars
The list of Well-Architected pillars to focus on. -
getBusinessOverview
A business overview for the profile used to improve recommendation quality. -
setBusinessOverview
A business overview for the profile used to improve recommendation quality. -
getDeletionProtection
Whether deletion protection is enabled for the profile.Returns union: either
BooleanorIResolvable -
setDeletionProtection
Whether deletion protection is enabled for the profile. -
setDeletionProtection
Whether deletion protection is enabled for the profile. -
getDescription
A description of the profile. -
setDescription
A description of the profile. -
getDisplayName
The human-readable display name of the profile. -
setDisplayName
The human-readable display name of the profile. -
getTags
Key-value pairs to associate with the Agent Profile. -
setTags
Key-value pairs to associate with the Agent Profile.
-