CommandParameterProperty Struct
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const commandParameterProperty: iot.CfnCommand.CommandParameterProperty = {
name: 'name',
// the properties below are optional
defaultValue: {
b: false,
bin: 'bin',
d: 123,
i: 123,
l: 'l',
s: 's',
ul: 'ul',
},
description: 'description',
type: 'type',
value: {
b: false,
bin: 'bin',
d: 123,
i: 123,
l: 'l',
s: 's',
ul: 'ul',
},
valueConditions: [{
comparisonOperator: 'comparisonOperator',
operand: {
number: 'number',
numberRange: {
max: 'max',
min: 'min',
},
numbers: ['numbers'],
string: 'string',
strings: ['strings'],
},
}],
};
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_iot as iot
command_parameter_property = iot.CfnCommand.CommandParameterProperty(
name="name",
# the properties below are optional
default_value=iot.CfnCommand.CommandParameterValueProperty(
b=False,
bin="bin",
d=123,
i=123,
l="l",
s="s",
ul="ul"
),
description="description",
type="type",
value=iot.CfnCommand.CommandParameterValueProperty(
b=False,
bin="bin",
d=123,
i=123,
l="l",
s="s",
ul="ul"
),
value_conditions=[iot.CfnCommand.CommandParameterValueConditionProperty(
comparison_operator="comparisonOperator",
operand=iot.CfnCommand.CommandParameterValueComparisonOperandProperty(
number="number",
number_range=iot.CfnCommand.CommandParameterValueNumberRangeProperty(
max="max",
min="min"
),
numbers=["numbers"],
string="string",
strings=["strings"]
)
)]
)
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.iot.*;
CommandParameterProperty commandParameterProperty = CommandParameterProperty.builder()
.name("name")
// the properties below are optional
.defaultValue(CommandParameterValueProperty.builder()
.b(false)
.bin("bin")
.d(123)
.i(123)
.l("l")
.s("s")
.ul("ul")
.build())
.description("description")
.type("type")
.value(CommandParameterValueProperty.builder()
.b(false)
.bin("bin")
.d(123)
.i(123)
.l("l")
.s("s")
.ul("ul")
.build())
.valueConditions(List.of(CommandParameterValueConditionProperty.builder()
.comparisonOperator("comparisonOperator")
.operand(CommandParameterValueComparisonOperandProperty.builder()
.number("number")
.numberRange(CommandParameterValueNumberRangeProperty.builder()
.max("max")
.min("min")
.build())
.numbers(List.of("numbers"))
.string("string")
.strings(List.of("strings"))
.build())
.build()))
.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.IoT;
var commandParameterProperty = new CommandParameterProperty {
Name = "name",
// the properties below are optional
DefaultValue = new CommandParameterValueProperty {
B = false,
Bin = "bin",
D = 123,
I = 123,
L = "l",
S = "s",
Ul = "ul"
},
Description = "description",
Type = "type",
Value = new CommandParameterValueProperty {
B = false,
Bin = "bin",
D = 123,
I = 123,
L = "l",
S = "s",
Ul = "ul"
},
ValueConditions = new [] { new CommandParameterValueConditionProperty {
ComparisonOperator = "comparisonOperator",
Operand = new CommandParameterValueComparisonOperandProperty {
Number = "number",
NumberRange = new CommandParameterValueNumberRangeProperty {
Max = "max",
Min = "min"
},
Numbers = new [] { "numbers" },
String = "string",
Strings = new [] { "strings" }
}
} }
};
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"
commandParameterProperty := &CommandParameterProperty{
Name: jsii.String("name"),
// the properties below are optional
DefaultValue: &CommandParameterValueProperty{
B: jsii.Boolean(false),
Bin: jsii.String("bin"),
D: jsii.Number(123),
I: jsii.Number(123),
L: jsii.String("l"),
S: jsii.String("s"),
Ul: jsii.String("ul"),
},
Description: jsii.String("description"),
Type: jsii.String("type"),
Value: &CommandParameterValueProperty{
B: jsii.Boolean(false),
Bin: jsii.String("bin"),
D: jsii.Number(123),
I: jsii.Number(123),
L: jsii.String("l"),
S: jsii.String("s"),
Ul: jsii.String("ul"),
},
ValueConditions: []interface{}{
&CommandParameterValueConditionProperty{
ComparisonOperator: jsii.String("comparisonOperator"),
Operand: &CommandParameterValueComparisonOperandProperty{
Number: jsii.String("number"),
NumberRange: &CommandParameterValueNumberRangeProperty{
Max: jsii.String("max"),
Min: jsii.String("min"),
},
Numbers: []*string{
jsii.String("numbers"),
},
String: jsii.String("string"),
Strings: []*string{
jsii.String("strings"),
},
},
},
},
}
Properties
defaultValueoptionalIResolvable | CfnCommand.default_valueoptionaltyping.Union[IResolvable, CommandParameterValueProperty]defaultValueoptionalIResolvableDefaultValueoptionalIResolvableDefaultValueoptionalinterface{} #descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #valueoptionalIResolvable | CfnCommand.valueoptionaltyping.Union[IResolvable, CommandParameterValueProperty]valueoptionalIResolvableValueoptionalIResolvableValueoptionalinterface{} #valueConditionsoptionalIResolvable | IResolvable | CfnCommand.value_conditionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CommandParameterValueConditionProperty]]]valueConditionsoptionalIResolvableValueConditionsoptionalIResolvableValueConditionsoptionalinterface{} #