CfnSubscriberProps Struct
Properties for defining a CfnSubscriber.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securitylake as securitylake } from 'aws-cdk-lib';
const cfnSubscriberProps: securitylake.CfnSubscriberProps = {
accessTypes: ['accessTypes'],
dataLakeArn: 'dataLakeArn',
sources: [{
awsLogSource: {
sourceName: 'sourceName',
sourceVersion: 'sourceVersion',
},
customLogSource: {
sourceName: 'sourceName',
sourceVersion: 'sourceVersion',
},
}],
subscriberIdentity: {
externalId: 'externalId',
principal: 'principal',
},
subscriberName: 'subscriberName',
// the properties below are optional
subscriberDescription: 'subscriberDescription',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_securitylake as securitylake
cfn_subscriber_props = securitylake.CfnSubscriberProps(
access_types=["accessTypes"],
data_lake_arn="dataLakeArn",
sources=[securitylake.CfnSubscriber.SourceProperty(
aws_log_source=securitylake.CfnSubscriber.AwsLogSourceProperty(
source_name="sourceName",
source_version="sourceVersion"
),
custom_log_source=securitylake.CfnSubscriber.CustomLogSourceProperty(
source_name="sourceName",
source_version="sourceVersion"
)
)],
subscriber_identity=securitylake.CfnSubscriber.SubscriberIdentityProperty(
external_id="externalId",
principal="principal"
),
subscriber_name="subscriberName",
# the properties below are optional
subscriber_description="subscriberDescription",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// 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.*;
CfnSubscriberProps cfnSubscriberProps = CfnSubscriberProps.builder()
.accessTypes(List.of("accessTypes"))
.dataLakeArn("dataLakeArn")
.sources(List.of(SourceProperty.builder()
.awsLogSource(AwsLogSourceProperty.builder()
.sourceName("sourceName")
.sourceVersion("sourceVersion")
.build())
.customLogSource(CustomLogSourceProperty.builder()
.sourceName("sourceName")
.sourceVersion("sourceVersion")
.build())
.build()))
.subscriberIdentity(SubscriberIdentityProperty.builder()
.externalId("externalId")
.principal("principal")
.build())
.subscriberName("subscriberName")
// the properties below are optional
.subscriberDescription("subscriberDescription")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SecurityLake;
var cfnSubscriberProps = new CfnSubscriberProps {
AccessTypes = new [] { "accessTypes" },
DataLakeArn = "dataLakeArn",
Sources = new [] { new SourceProperty {
AwsLogSource = new AwsLogSourceProperty {
SourceName = "sourceName",
SourceVersion = "sourceVersion"
},
CustomLogSource = new CustomLogSourceProperty {
SourceName = "sourceName",
SourceVersion = "sourceVersion"
}
} },
SubscriberIdentity = new SubscriberIdentityProperty {
ExternalId = "externalId",
Principal = "principal"
},
SubscriberName = "subscriberName",
// the properties below are optional
SubscriberDescription = "subscriberDescription",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnSubscriberProps := &CfnSubscriberProps{
AccessTypes: []*string{
jsii.String("accessTypes"),
},
DataLakeArn: jsii.String("dataLakeArn"),
Sources: []interface{}{
&SourceProperty{
AwsLogSource: &AwsLogSourceProperty{
SourceName: jsii.String("sourceName"),
SourceVersion: jsii.String("sourceVersion"),
},
CustomLogSource: &CustomLogSourceProperty{
SourceName: jsii.String("sourceName"),
SourceVersion: jsii.String("sourceVersion"),
},
},
},
SubscriberIdentity: &SubscriberIdentityProperty{
ExternalId: jsii.String("externalId"),
Principal: jsii.String("principal"),
},
SubscriberName: jsii.String("subscriberName"),
// the properties below are optional
SubscriberDescription: jsii.String("subscriberDescription"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
accessTypesstring[]access_typestyping.List[str]accessTypesList<String>AccessTypesstring[]AccessTypes*[]*string required #You can choose to notify subscribers of new objects with an Amazon Simple Queue Service (Amazon SQS) queue or through messaging to an HTTPS endpoint provided by the subscriber.
Subscribers can consume data by directly querying AWS Lake Formation tables in your Amazon S3 bucket through services like Amazon Athena. This subscription type is defined as LAKEFORMATION .
The Amazon Resource Name (ARN) used to create the data lake.
sourcesIResolvable | IResolvable | CfnSubscriber.SourceProperty[]sourcestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SourceProperty]]]sourcesIResolvableSourcesIResolvableSourcesinterface{} required #Amazon Security Lake supports log and event collection for natively supported AWS services .
For more information, see the Amazon Security Lake User Guide .
subscriberDescriptionoptionalstringsubscriber_descriptionoptionalstrsubscriberDescriptionoptionalStringSubscriberDescriptionoptionalstringSubscriberDescriptionoptional*string #The subscriber descriptions for a subscriber account.
The description for a subscriber includes subscriberName , accountID , externalID , and subscriberId .
subscriberIdentityIResolvable | CfnSubscriber.subscriber_identitytyping.Union[IResolvable, SubscriberIdentityProperty]subscriberIdentityIResolvableSubscriberIdentityIResolvableSubscriberIdentityinterface{} required #The AWS identity used to access your data.
subscriberNamestringsubscriber_namestrsubscriberNameStringSubscriberNamestringSubscriberName*string required #The name of your Amazon Security Lake subscriber account.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #An array of objects, one for each tag to associate with the subscriber.
For each tag, you must specify both a tag key and a tag value. A tag value cannot be null, but it can be an empty string.