@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:36.233Z") public class CfnEventType extends CfnResource implements IInspectable
Manages an event type. An event is a business activity that is evaluated for fraud risk. With Amazon Fraud Detector, you generate fraud predictions for events. An event type defines the structure for an event sent to Amazon Fraud Detector. This includes the variables sent as part of the event, the entity performing the event (such as a customer), and the labels that classify the event. Example event types include online payment transactions, account registrations, and authentications.
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.frauddetector.*; CfnEventType cfnEventType = CfnEventType.Builder.create(this, "MyCfnEventType") .entityTypes(List.of(EntityTypeProperty.builder() .arn("arn") .createdTime("createdTime") .description("description") .inline(false) .lastUpdatedTime("lastUpdatedTime") .name("name") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build())) .eventVariables(List.of(EventVariableProperty.builder() .arn("arn") .createdTime("createdTime") .dataSource("dataSource") .dataType("dataType") .defaultValue("defaultValue") .description("description") .inline(false) .lastUpdatedTime("lastUpdatedTime") .name("name") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .variableType("variableType") .build())) .labels(List.of(LabelProperty.builder() .arn("arn") .createdTime("createdTime") .description("description") .inline(false) .lastUpdatedTime("lastUpdatedTime") .name("name") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build())) .name("name") // the properties below are optional .description("description") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnEventType.Builder
A fluent builder for
CfnEventType . |
static interface |
CfnEventType.EntityTypeProperty
The entity type details.
|
static interface |
CfnEventType.EventVariableProperty
The variables associated with this event type.
|
static interface |
CfnEventType.LabelProperty
The label associated with the event type.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnEventType(Construct scope,
java.lang.String id,
CfnEventTypeProps props)
Create a new `AWS::FraudDetector::EventType`.
|
protected |
CfnEventType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEventType(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrArn()
The event type ARN.
|
java.lang.String |
getAttrCreatedTime()
Timestamp of when event type was created.
|
java.lang.String |
getAttrLastUpdatedTime()
Timestamp of when event type was last updated.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDescription()
The event type description.
|
java.lang.Object |
getEntityTypes()
The event type entity types.
|
java.lang.Object |
getEventVariables()
The event type event variables.
|
java.lang.Object |
getLabels()
The event type labels.
|
java.lang.String |
getName()
The event type name.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDescription(java.lang.String value)
The event type description.
|
void |
setEntityTypes(IResolvable value)
The event type entity types.
|
void |
setEntityTypes(java.util.List<java.lang.Object> value)
The event type entity types.
|
void |
setEventVariables(IResolvable value)
The event type event variables.
|
void |
setEventVariables(java.util.List<java.lang.Object> value)
The event type event variables.
|
void |
setLabels(IResolvable value)
The event type labels.
|
void |
setLabels(java.util.List<java.lang.Object> value)
The event type labels.
|
void |
setName(java.lang.String value)
The event type name.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnEventType(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEventType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnEventType(Construct scope, java.lang.String id, CfnEventTypeProps 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. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
public java.lang.String getAttrCreatedTime()
public java.lang.String getAttrLastUpdatedTime()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
For more information, see Tag .
public java.lang.Object getEntityTypes()
public void setEntityTypes(IResolvable value)
public void setEntityTypes(java.util.List<java.lang.Object> value)
public java.lang.Object getEventVariables()
public void setEventVariables(IResolvable value)
public void setEventVariables(java.util.List<java.lang.Object> value)
public java.lang.Object getLabels()
public void setLabels(IResolvable value)
public void setLabels(java.util.List<java.lang.Object> value)
public java.lang.String getName()
Pattern : ^[0-9a-z_-]+$
public void setName(java.lang.String value)
Pattern : ^[0-9a-z_-]+$
public java.lang.String getDescription()
public void setDescription(java.lang.String value)