CfnAccessLogSubscriptionProps Struct
Properties for defining a CfnAccessLogSubscription.
| 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_vpclattice as vpclattice } from 'aws-cdk-lib';
const cfnAccessLogSubscriptionProps: vpclattice.CfnAccessLogSubscriptionProps = {
destinationArn: 'destinationArn',
// the properties below are optional
resourceIdentifier: 'resourceIdentifier',
serviceNetworkLogType: 'serviceNetworkLogType',
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_vpclattice as vpclattice
cfn_access_log_subscription_props = vpclattice.CfnAccessLogSubscriptionProps(
destination_arn="destinationArn",
# the properties below are optional
resource_identifier="resourceIdentifier",
service_network_log_type="serviceNetworkLogType",
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.vpclattice.*;
CfnAccessLogSubscriptionProps cfnAccessLogSubscriptionProps = CfnAccessLogSubscriptionProps.builder()
.destinationArn("destinationArn")
// the properties below are optional
.resourceIdentifier("resourceIdentifier")
.serviceNetworkLogType("serviceNetworkLogType")
.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.VpcLattice;
var cfnAccessLogSubscriptionProps = new CfnAccessLogSubscriptionProps {
DestinationArn = "destinationArn",
// the properties below are optional
ResourceIdentifier = "resourceIdentifier",
ServiceNetworkLogType = "serviceNetworkLogType",
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"
cfnAccessLogSubscriptionProps := &CfnAccessLogSubscriptionProps{
DestinationArn: jsii.String("destinationArn"),
// the properties below are optional
ResourceIdentifier: jsii.String("resourceIdentifier"),
ServiceNetworkLogType: jsii.String("serviceNetworkLogType"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
destinationArnstringdestination_arnstrdestinationArnStringDestinationArnstringDestinationArn*string required #The Amazon Resource Name (ARN) of the destination.
The supported destination types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and Amazon S3 buckets.
resourceIdentifieroptionalstringresource_identifieroptionalstrresourceIdentifieroptionalStringResourceIdentifieroptionalstringResourceIdentifieroptional*string #The ID or ARN of the service network or service.
serviceNetworkLogTypeoptionalstringservice_network_log_typeoptionalstrserviceNetworkLogTypeoptionalStringServiceNetworkLogTypeoptionalstringServiceNetworkLogTypeoptional*string #Log type of the service network.