Class CfnAwsLogSource
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,IAwsLogSourceRef,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 theDependsOnattribute to create the sources sequentially. With theDependsOnattribute you can specify that the creation of a specificAWSLogSourcefollows another. When you add aDependsOnattribute to a resource, that resource is created only after the creation of the resource specified in theDependsOnattribute. 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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.securitylake.IAwsLogSourceRef
IAwsLogSourceRef.Jsii$Default, IAwsLogSourceRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAwsLogSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAwsLogSource(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.A reference to a AwsLogSource resource.The Amazon Resource Name (ARN) used to create the data lake.The name for a AWS source.The version for a AWS source.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccounts(List<String> value) Specify the AWS account information where you want to enable Security Lake.voidsetDataLakeArn(String value) The Amazon Resource Name (ARN) used to create the data lake.voidsetSourceName(String value) The name for a AWS source.voidsetSourceVersion(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, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAwsLogSourceRef
A reference to a AwsLogSource resource.- Specified by:
getAwsLogSourceRefin interfaceIAwsLogSourceRef
-
getCfnProperties
- Overrides:
getCfnPropertiesin 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.
-