Class CfnSession
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Macie::Session.
The AWS::Macie::Session resource represents the Amazon Macie service and certain configuration settings for an Amazon Macie account in a specific AWS Region . It enables Macie to become operational for a specific account in a specific Region. An account can have only one session in each Region.
You must create an AWS::Macie::Session resource for an account before you can create other types of resources for the account. Use a DependsOn attribute to ensure that an AWS::Macie::Session resource is created before other Macie resources are created for an account. For example, "DependsOn": "Session" .
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.macie.*;
CfnSession cfnSession = CfnSession.Builder.create(this, "MyCfnSession")
.findingPublishingFrequency("findingPublishingFrequency")
.status("status")
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnSession(Construct scope, String id) Create a newAWS::Macie::Session.CfnSession(Construct scope, String id, CfnSessionProps props) Create a newAWS::Macie::Session.protectedCfnSession(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSession(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe account ID for the AWS account in which the Amazon Macie session is created.The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in AWS resources for the account.Specifies how often Amazon Macie publishes updates to policy findings for the account.The status of Amazon Macie for the account.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidSpecifies how often Amazon Macie publishes updates to policy findings for the account.voidThe status of Amazon Macie for the account.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSession
protected CfnSession(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSession
protected CfnSession(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSession
@Stability(Stable) public CfnSession(@NotNull Construct scope, @NotNull String id, @Nullable CfnSessionProps props) Create a newAWS::Macie::Session.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
CfnSession
Create a newAWS::Macie::Session.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAwsAccountId
The account ID for the AWS account in which the Amazon Macie session is created. -
getAttrServiceRole
The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in AWS resources for the account. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFindingPublishingFrequency
Specifies how often Amazon Macie publishes updates to policy findings for the account.This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events ). Valid values are:
- FIFTEEN_MINUTES
- ONE_HOUR
- SIX_HOURS
-
setFindingPublishingFrequency
Specifies how often Amazon Macie publishes updates to policy findings for the account.This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events ). Valid values are:
- FIFTEEN_MINUTES
- ONE_HOUR
- SIX_HOURS
-
getStatus
The status of Amazon Macie for the account.Valid values are:
ENABLED, start or resume all Macie activities for the account; and,PAUSED, suspend all Macie activities for the account. -
setStatus
The status of Amazon Macie for the account.Valid values are:
ENABLED, start or resume all Macie activities for the account; and,PAUSED, suspend all Macie activities for the account.
-