Skip to content
v2.278.0

SpacerProps Struct ​

Props of the spacer.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const spacerProps: cloudwatch.SpacerProps = {
  height: 123,
  width: 123,
};
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_cloudwatch as cloudwatch

spacer_props = cloudwatch.SpacerProps(
    height=123,
    width=123
)
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.cloudwatch.*;

SpacerProps spacerProps = SpacerProps.builder()
        .height(123)
        .width(123)
        .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.CloudWatch;

var spacerProps = new SpacerProps {
    Height = 123,
    Width = 123
};
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"

spacerProps := &SpacerProps{
	Height: jsii.Number(123),
	Width: jsii.Number(123),
}

Properties ​

heightoptionalnumberheightoptionalint | floatheightoptionalNumberHeightoptionaldoubleHeightoptional*float64 #
Height of the spacer.

Default: : 1

widthoptionalnumberwidthoptionalint | floatwidthoptionalNumberWidthoptionaldoubleWidthoptional*float64 = 1 #
Width of the spacer.