Skip to content
v2.278.0

IpRuleProperty ​

Struct External

The IP rules of the IP access settings.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspacesweb as workspacesweb } from 'aws-cdk-lib';
const ipRuleProperty: workspacesweb.CfnIpAccessSettings.IpRuleProperty = {
  ipRange: 'ipRange',

  // the properties below are optional
  description: 'description',
};
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_workspacesweb as workspacesweb

ip_rule_property = workspacesweb.CfnIpAccessSettings.IpRuleProperty(
    ip_range="ipRange",

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

IpRuleProperty ipRuleProperty = IpRuleProperty.builder()
        .ipRange("ipRange")

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

var ipRuleProperty = new IpRuleProperty {
    IpRange = "ipRange",

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

ipRuleProperty := &IpRuleProperty{
	IpRange: jsii.String("ipRange"),

	// the properties below are optional
	Description: jsii.String("description"),
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the IP rule.
ipRangestringip_rangestripRangeStringIpRangestringIpRange*string required #
The IP range of the IP rule.

This can either be a single IP address or a range using CIDR notation.