@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:36.951Z") @Stability(value=Stable) public class CfnSession extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnSession.Builder
A fluent builder for
CfnSession. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| 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 |
|---|---|
|
CfnSession(Construct scope,
String id)
Create a new `AWS::Macie::Session`.
|
|
CfnSession(Construct scope,
String id,
CfnSessionProps props)
Create a new `AWS::Macie::Session`.
|
protected |
CfnSession(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSession(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrAwsAccountId()
The account ID for the AWS account in which the Amazon Macie session is created.
|
String |
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.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getFindingPublishingFrequency()
Specifies how often Amazon Macie publishes updates to policy findings for the account.
|
String |
getStatus()
The status of Amazon Macie for the account.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setFindingPublishingFrequency(String value)
Specifies how often Amazon Macie publishes updates to policy findings for the account.
|
void |
setStatus(String value)
The status of Amazon Macie for the account.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnSession(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSession(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnSession(@NotNull
Construct scope,
@NotNull
String id,
@Nullable
CfnSessionProps 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.@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 getAttrAwsAccountId()
@Stability(value=Stable) @NotNull public String getAttrServiceRole()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getFindingPublishingFrequency()
This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events ). Valid values are:
@Stability(value=Stable)
public void setFindingPublishingFrequency(@Nullable
String value)
This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events ). Valid values are:
@Stability(value=Stable) @Nullable public String getStatus()
Valid values are: ENABLED , start or resume all Macie activities for the account; and, PAUSED , suspend all Macie activities for the account.
@Stability(value=Stable)
public void setStatus(@Nullable
String value)
Valid values are: ENABLED , start or resume all Macie activities for the account; and, PAUSED , suspend all Macie activities for the account.
Copyright © 2022. All rights reserved.