Class CfnAwsLogSource

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-27T17:02:10.109Z") @Stability(Stable) public class CfnAwsLogSource extends CfnResource implements IInspectable
Adds a natively supported AWS service as an AWS source.

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 the DependsOn attribute to create the sources sequentially. With the DependsOn attribute you can specify that the creation of a specific AWSLogSource follows another. When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn 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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getDataLakeArn

      @Stability(Stable) @NotNull public String getDataLakeArn()
      The Amazon Resource Name (ARN) used to create the data lake.
    • setDataLakeArn

      @Stability(Stable) public void setDataLakeArn(@NotNull String value)
      The Amazon Resource Name (ARN) used to create the data lake.
    • getSourceName

      @Stability(Stable) @NotNull public String getSourceName()
      The name for a AWS source.
    • setSourceName

      @Stability(Stable) public void setSourceName(@NotNull String value)
      The name for a AWS source.
    • getSourceVersion

      @Stability(Stable) @NotNull public String getSourceVersion()
      The version for a AWS source.
    • setSourceVersion

      @Stability(Stable) public void setSourceVersion(@NotNull String value)
      The version for a AWS source.
    • getAccounts

      @Stability(Stable) @Nullable public List<String> getAccounts()
      Specify the AWS account information where you want to enable Security Lake.
    • setAccounts

      @Stability(Stable) public void setAccounts(@Nullable List<String> value)
      Specify the AWS account information where you want to enable Security Lake.