Class CfnMetricAttribution
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.personalize.CfnMetricAttribution
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IMetricAttributionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:14.940Z")
@Stability(Stable)
public class CfnMetricAttribution
extends CfnResource
implements IInspectable, IMetricAttributionRef
Creates a metric attribution for reporting on recommendation impact in Amazon Personalize.
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.personalize.*;
CfnMetricAttribution cfnMetricAttribution = CfnMetricAttribution.Builder.create(this, "MyCfnMetricAttribution")
.datasetGroupArn("datasetGroupArn")
.metrics(List.of(MetricAttributeProperty.builder()
.eventType("eventType")
.expression("expression")
.metricName("metricName")
.build()))
.metricsOutputConfig(MetricsOutputConfigProperty.builder()
.roleArn("roleArn")
// the properties below are optional
.s3DataDestination(S3DataDestinationProperty.builder()
.path("path")
// the properties below are optional
.kmsKeyArn("kmsKeyArn")
.build())
.build())
.name("name")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnMetricAttribution.static interfaceA metric attribute for the metric attribution.static interfaceThe output configuration details for the metric attribution.static interfaceThe configuration details of an Amazon S3 output bucket.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.interfaces.personalize.IMetricAttributionRef
IMetricAttributionRef.Jsii$Default, IMetricAttributionRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnMetricAttribution(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMetricAttribution(software.amazon.jsii.JsiiObjectRef objRef) CfnMetricAttribution(software.constructs.Construct scope, String id, CfnMetricAttributionProps props) Create a newAWS::Personalize::MetricAttribution. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForMetricAttribution(IMetricAttributionRef resource) The ARN of the metric attribution.The status of the metric attribution.The ARN of the destination dataset group.A reference to a MetricAttribution resource.A list of metric attributes for the metric attribution.The output configuration details for the metric attribution.getName()The name of the metric attribution.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnMetricAttribution.renderProperties(Map<String, Object> props) voidsetDatasetGroupArn(String value) The ARN of the destination dataset group.voidsetMetrics(List<Object> value) A list of metric attributes for the metric attribution.voidsetMetrics(IResolvable value) A list of metric attributes for the metric attribution.voidThe output configuration details for the metric attribution.voidThe output configuration details for the metric attribution.voidThe name of the metric attribution.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
-
CfnMetricAttribution
protected CfnMetricAttribution(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMetricAttribution
protected CfnMetricAttribution(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMetricAttribution
@Stability(Stable) public CfnMetricAttribution(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMetricAttributionProps props) Create a newAWS::Personalize::MetricAttribution.- 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
-
arnForMetricAttribution
@Stability(Stable) @NotNull public static String arnForMetricAttribution(@NotNull IMetricAttributionRef resource) - Parameters:
resource- This parameter is required.
-
isCfnMetricAttribution
Checks whether the given object is a CfnMetricAttribution.- 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.
-
getAttrMetricAttributionArn
The ARN of the metric attribution. -
getAttrStatus
The status of the metric attribution. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getMetricAttributionRef
A reference to a MetricAttribution resource.- Specified by:
getMetricAttributionRefin interfaceIMetricAttributionRef
-
getDatasetGroupArn
The ARN of the destination dataset group. -
setDatasetGroupArn
The ARN of the destination dataset group. -
getMetrics
A list of metric attributes for the metric attribution.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnMetricAttribution.MetricAttributeProperty> -
setMetrics
A list of metric attributes for the metric attribution. -
setMetrics
A list of metric attributes for the metric attribution. -
getMetricsOutputConfig
The output configuration details for the metric attribution.Returns union: either
IResolvableorCfnMetricAttribution.MetricsOutputConfigProperty -
setMetricsOutputConfig
The output configuration details for the metric attribution. -
setMetricsOutputConfig
@Stability(Stable) public void setMetricsOutputConfig(@NotNull CfnMetricAttribution.MetricsOutputConfigProperty value) The output configuration details for the metric attribution. -
getName
The name of the metric attribution. -
setName
The name of the metric attribution.
-