Class CfnAwsLogSource
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
Enables source types for member accounts in required AWS Regions, based on the parameters you specify. You can choose any source type in any Region for either accounts that are part of a trusted organization or standalone accounts. Once you add an AWS service as a source, Security Lake starts collecting logs and events from it.
If you want to create multiple sources using
AWS::SecurityLake::AwsLogSource
, you must use theDependsOn
attribute to create the sources sequentially. With theDependsOn
attribute you can specify that the creation of a specificAWSLogSource
follows another. When you add aDependsOn
attribute to a resource, that resource is created only after the creation of the resource specified in theDependsOn
attribute. For an example, see Add AWS log sources .
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.securitylake.*; CfnAwsLogSource cfnAwsLogSource = CfnAwsLogSource.Builder.create(this, "MyCfnAwsLogSource") .dataLakeArn("dataLakeArn") .sourceName("sourceName") .sourceVersion("sourceVersion") // the properties below are optional .accounts(List.of("accounts")) .build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnAwsLogSource
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnAwsLogSource
(software.amazon.jsii.JsiiObjectRef objRef) CfnAwsLogSource
(software.constructs.Construct scope, String id, CfnAwsLogSourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionSpecify the AWS account information where you want to enable Security Lake.The Amazon Resource Name (ARN) used to create the data lake.The name for a AWS source.The version for a AWS source.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAccounts
(List<String> value) Specify the AWS account information where you want to enable Security Lake.void
setDataLakeArn
(String value) The Amazon Resource Name (ARN) used to create the data lake.void
setSourceName
(String value) The name for a AWS source.void
setSourceVersion
(String value) The version for a AWS source.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
CfnAwsLogSource
protected CfnAwsLogSource(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAwsLogSource
protected CfnAwsLogSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAwsLogSource
@Stability(Stable) public CfnAwsLogSource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAwsLogSourceProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- 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 classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getDataLakeArn
The Amazon Resource Name (ARN) used to create the data lake. -
setDataLakeArn
The Amazon Resource Name (ARN) used to create the data lake. -
getSourceName
The name for a AWS source. -
setSourceName
The name for a AWS source. -
getSourceVersion
The version for a AWS source. -
setSourceVersion
The version for a AWS source. -
getAccounts
Specify the AWS account information where you want to enable Security Lake. -
setAccounts
Specify the AWS account information where you want to enable Security Lake.
-