Class CfnEventType

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:56.823Z") @Stability(Stable) public class CfnEventType extends CfnResource implements IInspectable
A CloudFormation AWS::FraudDetector::EventType.

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();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnEventType

      protected CfnEventType(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnEventType

      protected CfnEventType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnEventType

      @Stability(Stable) public CfnEventType(@NotNull Construct scope, @NotNull String id, @NotNull CfnEventTypeProps props)
      Create a new AWS::FraudDetector::EventType.

      Parameters:
      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.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The event type ARN.
    • getAttrCreatedTime

      @Stability(Stable) @NotNull public String getAttrCreatedTime()
      Timestamp of when event type was created.
    • getAttrLastUpdatedTime

      @Stability(Stable) @NotNull public String getAttrLastUpdatedTime()
      Timestamp of when event type was last updated.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

    • getEntityTypes

      @Stability(Stable) @NotNull public Object getEntityTypes()
      The event type entity types.
    • setEntityTypes

      @Stability(Stable) public void setEntityTypes(@NotNull IResolvable value)
      The event type entity types.
    • setEntityTypes

      @Stability(Stable) public void setEntityTypes(@NotNull List<Object> value)
      The event type entity types.
    • getEventVariables

      @Stability(Stable) @NotNull public Object getEventVariables()
      The event type event variables.
    • setEventVariables

      @Stability(Stable) public void setEventVariables(@NotNull IResolvable value)
      The event type event variables.
    • setEventVariables

      @Stability(Stable) public void setEventVariables(@NotNull List<Object> value)
      The event type event variables.
    • getLabels

      @Stability(Stable) @NotNull public Object getLabels()
      The event type labels.
    • setLabels

      @Stability(Stable) public void setLabels(@NotNull IResolvable value)
      The event type labels.
    • setLabels

      @Stability(Stable) public void setLabels(@NotNull List<Object> value)
      The event type labels.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The event type name.

      Pattern : ^[0-9a-z_-]+$

    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The event type name.

      Pattern : ^[0-9a-z_-]+$

    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The event type description.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The event type description.