cloudshift.awscdk.dsl.services.quicksight.CfnTemplateBodySectionContentPropertyDsl.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier", "RedundantUnitReturnType", "RemoveRedundantQualifierName", "unused", "UnusedImport", "ClassName", "REDUNDANT_PROJECTION", "DEPRECATION")
package cloudshift.awscdk.dsl.services.quicksight
import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.IResolvable
import software.amazon.awscdk.services.quicksight.CfnTemplate
/**
* The configuration of content in a body section.
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import software.amazon.awscdk.services.quicksight.*;
* BodySectionContentProperty bodySectionContentProperty = BodySectionContentProperty.builder()
* .layout(SectionLayoutConfigurationProperty.builder()
* .freeFormLayout(FreeFormSectionLayoutConfigurationProperty.builder()
* .elements(List.of(FreeFormLayoutElementProperty.builder()
* .elementId("elementId")
* .elementType("elementType")
* .height("height")
* .width("width")
* .xAxisLocation("xAxisLocation")
* .yAxisLocation("yAxisLocation")
* // the properties below are optional
* .backgroundStyle(FreeFormLayoutElementBackgroundStyleProperty.builder()
* .color("color")
* .visibility("visibility")
* .build())
* .borderStyle(FreeFormLayoutElementBorderStyleProperty.builder()
* .color("color")
* .visibility("visibility")
* .build())
* .loadingAnimation(LoadingAnimationProperty.builder()
* .visibility("visibility")
* .build())
* .renderingRules(List.of(SheetElementRenderingRuleProperty.builder()
* .configurationOverrides(SheetElementConfigurationOverridesProperty.builder()
* .visibility("visibility")
* .build())
* .expression("expression")
* .build()))
* .selectedBorderStyle(FreeFormLayoutElementBorderStyleProperty.builder()
* .color("color")
* .visibility("visibility")
* .build())
* .visibility("visibility")
* .build()))
* .build())
* .build())
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-bodysectioncontent.html)
*/
@CdkDslMarker
public class CfnTemplateBodySectionContentPropertyDsl {
private val cdkBuilder: CfnTemplate.BodySectionContentProperty.Builder =
CfnTemplate.BodySectionContentProperty.builder()
/**
* @param layout The layout configuration of a body section.
*/
public fun layout(layout: IResolvable) {
cdkBuilder.layout(layout)
}
/**
* @param layout The layout configuration of a body section.
*/
public fun layout(layout: CfnTemplate.SectionLayoutConfigurationProperty) {
cdkBuilder.layout(layout)
}
public fun build(): CfnTemplate.BodySectionContentProperty = cdkBuilder.build()
}