Class CfnSession
The AWS::Macie::Session
resource represents the Amazon Macie service and certain configuration settings for an Amazon Macie account in a specific AWS Region .
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Macie
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSession : CfnResource, IInspectable
Syntax (vb)
Public Class CfnSession
Inherits CfnResource
Implements IInspectable
Remarks
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"
.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-session.html
CloudformationResource: AWS::Macie::Session
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Macie;
var cfnSession = new CfnSession(this, "MyCfnSession", new CfnSessionProps {
FindingPublishingFrequency = "findingPublishingFrequency",
Status = "status"
});
Synopsis
Constructors
CfnSession(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnSession(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnSession(Construct, String, ICfnSessionProps) |
Properties
AttrAwsAccountId | The account ID for the AWS account in which the Amazon Macie session is created. |
AttrServiceRole | 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. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
FindingPublishingFrequency | Specifies how often Amazon Macie publishes updates to policy findings for the account. |
Status | The status of Amazon Macie for the account. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnSession(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnSession(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnSession(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnSession(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnSession(Construct, String, ICfnSessionProps)
public CfnSession(Construct scope, string id, ICfnSessionProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnSessionProps
Resource properties.
Properties
AttrAwsAccountId
The account ID for the AWS account in which the Amazon Macie session is created.
public virtual string AttrAwsAccountId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: AwsAccountId
AttrServiceRole
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.
public virtual string AttrServiceRole { get; }
Property Value
System.String
Remarks
CloudformationAttribute: ServiceRole
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
FindingPublishingFrequency
Specifies how often Amazon Macie publishes updates to policy findings for the account.
public virtual string FindingPublishingFrequency { get; set; }
Property Value
System.String
Status
The status of Amazon Macie for the account.
public virtual string Status { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>