Skip to content
v2.277.0

LogSubscriptionDestinationConfig Struct ​

Properties returned by a Subscription destination.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iam as iam } from 'aws-cdk-lib';
import { aws_logs as logs } from 'aws-cdk-lib';

declare const role: iam.Role;
const logSubscriptionDestinationConfig: logs.LogSubscriptionDestinationConfig = {
  arn: 'arn',

  // the properties below are optional
  role: role,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iam as iam
from aws_cdk import aws_logs as logs

# role: iam.Role

log_subscription_destination_config = logs.LogSubscriptionDestinationConfig(
    arn="arn",

    # the properties below are optional
    role=role
)
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.iam.*;
import software.amazon.awscdk.services.logs.*;

Role role;

LogSubscriptionDestinationConfig logSubscriptionDestinationConfig = LogSubscriptionDestinationConfig.builder()
        .arn("arn")

        // the properties below are optional
        .role(role)
        .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.IAM;
using Amazon.CDK.AWS.Logs;

Role role;

var logSubscriptionDestinationConfig = new LogSubscriptionDestinationConfig {
    Arn = "arn",

    // the properties below are optional
    Role = role
};
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"
import "github.com/aws/aws-cdk-go/awscdk"

var role Role

logSubscriptionDestinationConfig := &LogSubscriptionDestinationConfig{
	Arn: jsii.String("arn"),

	// the properties below are optional
	Role: role,
}

Properties ​

arnstringarnstrarnStringArnstringArn*string required #
The ARN of the subscription's destination.
roleoptionalIRoleroleoptionalIRoleroleoptionalIRoleRoleoptionalIRoleRoleoptionalIRole #
The role to assume to write log events to the destination.

Default: No role assumed