import * as core from "@terrascript/core"; export interface DirectoryServiceLogSubscriptionArgs extends core.ResourceArgs { /** * (Required) The id of directory. */ directoryId: string | core.StringOut; /** * (Required) Name of the cloudwatch log group to which the logs should be published. The log group sho * uld be already created and the directory service principal should be provided with required permissi * on to create stream and publish logs. Changing this value would delete the current subscription and * create a new one. A directory can only have one log subscription at a time. */ logGroupName: string | core.StringOut; } export class DirectoryServiceLogSubscription extends core.Resource { /** * (Required) The id of directory. */ @core.attr(String) public directoryId!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Name of the cloudwatch log group to which the logs should be published. The log group sho * uld be already created and the directory service principal should be provided with required permissi * on to create stream and publish logs. Changing this value would delete the current subscription and * create a new one. A directory can only have one log subscription at a time. */ @core.attr(String) public logGroupName!: string | core.StringOut; constructor(name: string, args?: DirectoryServiceLogSubscriptionArgs) { super(name, "aws_directory_service_log_subscription", args); } public override getNamespace(): string { return "aws_ds"; } }