@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.747Z") @Stability(value=Stable) public class CfnSession extends CfnResource implements IInspectable
The AWS::Macie::Session resource represents the Amazon Macie service and configuration settings for an account. A Session is created for each AWS Region in which you enable Macie .
You must create a Session for an account before you can create an AWS::Macie::FindingsFilter or AWS::Macie::CustomDataIdentifier resource. Use a DependsOn attribute to ensure that the Session is created before the other resources. 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$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 |
|---|---|
|
CfnSession(software.constructs.Construct scope,
String id)
Create a new `AWS::Macie::Session`.
|
|
CfnSession(software.constructs.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 `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()
The frequency with which Amazon Macie publishes updates to policy findings for an account.
|
String |
getStatus()
The `MacieStatus` of the `Session` .
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setFindingPublishingFrequency(String value)
The frequency with which Amazon Macie publishes updates to policy findings for an account.
|
void |
setStatus(String value)
The `MacieStatus` of the `Session` .
|
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 CfnSession(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSession(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnSession(@NotNull
software.constructs.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 CfnSession(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. 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 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 called 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 called Amazon CloudWatch Events ). Valid values are:
@Stability(value=Stable) @Nullable public String getStatus()
Valid values include ENABLED and PAUSED .
@Stability(value=Stable)
public void setStatus(@Nullable
String value)
Valid values include ENABLED and PAUSED .
Copyright © 2022. All rights reserved.