Class CfnAwsLogSource

All Implemented Interfaces:
IInspectable,, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-22T22:42:58.301Z") @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 .


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CfnAwsLogSource cfnAwsLogSource = CfnAwsLogSource.Builder.create(this, "MyCfnAwsLogSource")
         // the properties below are optional

See Also:
  • Field Details


      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnAwsLogSource

      protected CfnAwsLogSource( objRef)
    • CfnAwsLogSource

      protected CfnAwsLogSource( initializationMode)
    • CfnAwsLogSource

      @Stability(Stable) public CfnAwsLogSource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAwsLogSourceProps props)
      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
      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)
      renderProperties in class CfnResource
      props - This parameter is required.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      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.