@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.414Z") @Stability(value=Stable) 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.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.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 |
|---|---|
|
CfnEventType(software.constructs.Construct scope,
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 |
|---|---|
String |
getAttrArn()
The event type ARN.
|
String |
getAttrCreatedTime()
Timestamp of when event type was created.
|
String |
getAttrLastUpdatedTime()
Timestamp of when event type was last updated.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The event type description.
|
Object |
getEntityTypes()
The event type entity types.
|
Object |
getEventVariables()
The event type event variables.
|
Object |
getLabels()
The event type labels.
|
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 Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
The event type description.
|
void |
setEntityTypes(IResolvable value)
The event type entity types.
|
void |
setEntityTypes(List<Object> value)
The event type entity types.
|
void |
setEventVariables(IResolvable value)
The event type event variables.
|
void |
setEventVariables(List<Object> value)
The event type event variables.
|
void |
setLabels(IResolvable value)
The event type labels.
|
void |
setLabels(List<Object> value)
The event type labels.
|
void |
setName(String value)
The event type name.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEventType(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEventType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEventType(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - 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 CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrCreatedTime()
@Stability(value=Stable) @NotNull public String getAttrLastUpdatedTime()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public Object getEntityTypes()
@Stability(value=Stable)
public void setEntityTypes(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setEntityTypes(@NotNull
List<Object> value)
@Stability(value=Stable) @NotNull public Object getEventVariables()
@Stability(value=Stable)
public void setEventVariables(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setEventVariables(@NotNull
List<Object> value)
@Stability(value=Stable) @NotNull public Object getLabels()
@Stability(value=Stable)
public void setLabels(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setLabels(@NotNull
List<Object> value)
@Stability(value=Stable) @NotNull public String getName()
Pattern : ^[0-9a-z_-]+$
@Stability(value=Stable)
public void setName(@NotNull
String value)
Pattern : ^[0-9a-z_-]+$
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.