cloudshift.awscdk.dsl.CfnResourceVersionLoggingConfigPropertyDsl.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.CfnResourceVersion
/**
* Logging configuration information for a resource.
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import software.amazon.awscdk.*;
* LoggingConfigProperty loggingConfigProperty = LoggingConfigProperty.builder()
* .logGroupName("logGroupName")
* .logRoleArn("logRoleArn")
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-resourceversion-loggingconfig.html)
*/
@CdkDslMarker
public class CfnResourceVersionLoggingConfigPropertyDsl {
private val cdkBuilder: CfnResourceVersion.LoggingConfigProperty.Builder =
CfnResourceVersion.LoggingConfigProperty.builder()
/**
* @param logGroupName The Amazon CloudWatch logs group to which CloudFormation sends error
* logging information when invoking the type's handlers.
*/
public fun logGroupName(logGroupName: String) {
cdkBuilder.logGroupName(logGroupName)
}
/**
* @param logRoleArn The ARN of the role that CloudFormation should assume when sending log
* entries to CloudWatch logs.
*/
public fun logRoleArn(logRoleArn: String) {
cdkBuilder.logRoleArn(logRoleArn)
}
public fun build(): CfnResourceVersion.LoggingConfigProperty = cdkBuilder.build()
}