Package com.pulumi.aws.securitylake
Class AwsLogSource
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.securitylake.AwsLogSource
-
public class AwsLogSource extends com.pulumi.resources.CustomResource
Resource for managing an Amazon Security Lake AWS Log Source. > **NOTE:** A single `aws.securitylake.AwsLogSource` should be used to configure a log source across all regions and accounts. > **NOTE:** The underlying `aws.securitylake.DataLake` must be configured before creating the `aws.securitylake.AwsLogSource`. Use a `depends_on` statement. ## Example Usage ### Basic Usage <!--Start PulumiCodeChooser -->package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.securitylake.AwsLogSource; import com.pulumi.aws.securitylake.AwsLogSourceArgs; import com.pulumi.aws.securitylake.inputs.AwsLogSourceSourceArgs; import com.pulumi.resources.CustomResourceOptions; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var example = new AwsLogSource("example", AwsLogSourceArgs.builder() .source(AwsLogSourceSourceArgs.builder() .accounts("123456789012") .regions("eu-west-1") .sourceName("ROUTE53") .build()) .build(), CustomResourceOptions.builder() .dependsOn(exampleAwsSecuritylakeDataLake) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description AwsLogSource(java.lang.String name)
AwsLogSource(java.lang.String name, AwsLogSourceArgs args)
AwsLogSource(java.lang.String name, AwsLogSourceArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsLogSource
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AwsLogSourceState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<AwsLogSourceSource>>
source()
-
-
-
Constructor Detail
-
AwsLogSource
public AwsLogSource(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
AwsLogSource
public AwsLogSource(java.lang.String name, @Nullable AwsLogSourceArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
AwsLogSource
public AwsLogSource(java.lang.String name, @Nullable AwsLogSourceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
source
public com.pulumi.core.Output<java.util.Optional<AwsLogSourceSource>> source()
- Returns:
- Specify the natively-supported AWS service to add as a source in Security Lake.
-
get
public static AwsLogSource get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable AwsLogSourceState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-