Skip to content
v2.278.0

IpRuleItemProperty Struct ​

Describes a rule for an IP access control group.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspaces as workspaces } from 'aws-cdk-lib';
const ipRuleItemProperty: workspaces.CfnWorkspaceIpGroup.IpRuleItemProperty = {
  ipRule: 'ipRule',

  // the properties below are optional
  ruleDesc: 'ruleDesc',
};
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_workspaces as workspaces

ip_rule_item_property = workspaces.CfnWorkspaceIpGroup.IpRuleItemProperty(
    ip_rule="ipRule",

    # the properties below are optional
    rule_desc="ruleDesc"
)
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.workspaces.*;

IpRuleItemProperty ipRuleItemProperty = IpRuleItemProperty.builder()
        .ipRule("ipRule")

        // the properties below are optional
        .ruleDesc("ruleDesc")
        .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.WorkSpaces;

var ipRuleItemProperty = new IpRuleItemProperty {
    IpRule = "ipRule",

    // the properties below are optional
    RuleDesc = "ruleDesc"
};
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"

ipRuleItemProperty := &IpRuleItemProperty{
	IpRule: jsii.String("ipRule"),

	// the properties below are optional
	RuleDesc: jsii.String("ruleDesc"),
}

Properties ​

ipRulestringip_rulestripRuleStringIpRulestringIpRule*string required #
The IP address range, in CIDR notation.
ruleDescoptionalstringrule_descoptionalstrruleDescoptionalStringRuleDescoptionalstringRuleDescoptional*string #
The description of the rule.