# CfnWorkspaceIpGroupProps

Properties for defining a `CfnWorkspaceIpGroup`.

Used as props by: [CfnWorkspaceIpGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_workspaces.CfnWorkspaceIpGroup.html)

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```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 cfnWorkspaceIpGroupProps: workspaces.CfnWorkspaceIpGroupProps = {
  groupName: 'groupName',

  // the properties below are optional
  groupDesc: 'groupDesc',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  userRules: [{
    ipRule: 'ipRule',

    // the properties below are optional
    ruleDesc: 'ruleDesc',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# 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

cfn_workspace_ip_group_props = workspaces.CfnWorkspaceIpGroupProps(
    group_name="groupName",

    # the properties below are optional
    group_desc="groupDesc",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    user_rules=[workspaces.CfnWorkspaceIpGroup.IpRuleItemProperty(
        ip_rule="ipRule",

        # the properties below are optional
        rule_desc="ruleDesc"
    )]
)
```

Java:

```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.*;

CfnWorkspaceIpGroupProps cfnWorkspaceIpGroupProps = CfnWorkspaceIpGroupProps.builder()
        .groupName("groupName")

        // the properties below are optional
        .groupDesc("groupDesc")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .userRules(List.of(IpRuleItemProperty.builder()
                .ipRule("ipRule")

                // the properties below are optional
                .ruleDesc("ruleDesc")
                .build()))
        .build();
```

C# / .NET:

```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 cfnWorkspaceIpGroupProps = new CfnWorkspaceIpGroupProps {
    GroupName = "groupName",

    // the properties below are optional
    GroupDesc = "groupDesc",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    UserRules = new [] { new IpRuleItemProperty {
        IpRule = "ipRule",

        // the properties below are optional
        RuleDesc = "ruleDesc"
    } }
};
```

Golang:

```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"

cfnWorkspaceIpGroupProps := &CfnWorkspaceIpGroupProps{
	GroupName: jsii.String("groupName"),

	// the properties below are optional
	GroupDesc: jsii.String("groupDesc"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	UserRules: []interface{}{
		&IpRuleItemProperty{
			IpRule: jsii.String("ipRule"),

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

## Properties

- `groupDesc`: string — The description of the group.

- `groupName`: string (required) — The name of the group.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags for the IP access control group.

- `userRules`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWorkspaceIpGroup.IpRuleItemProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_workspaces.CfnWorkspaceIpGroup.IpRuleItemProperty.html)[] — The rules for the IP access control group.
