CfnWorkspaceIpGroupPropsMixin
- class aws_cdk.cfn_property_mixins.aws_workspaces.CfnWorkspaceIpGroupPropsMixin(props, *, strategy=None)
Bases:
MixinResource type definition for an IP access control group for Amazon WorkSpaces.
- See:
- CloudformationResource:
AWS::WorkSpaces::WorkspaceIpGroup
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_workspaces as workspaces import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_workspace_ip_group_props_mixin = workspaces.CfnWorkspaceIpGroupPropsMixin(workspaces.CfnWorkspaceIpGroupMixinProps( group_desc="groupDesc", group_name="groupName", tags=[cdk.CfnTag( key="key", value="value" )], user_rules=[workspaces.CfnWorkspaceIpGroupPropsMixin.IpRuleItemProperty( ip_rule="ipRule", rule_desc="ruleDesc" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::WorkSpaces::WorkspaceIpGroup.- Parameters:
props (
Union[CfnWorkspaceIpGroupMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['groupDesc', 'groupName', 'tags', 'userRules']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
IpRuleItemProperty
- class CfnWorkspaceIpGroupPropsMixin.IpRuleItemProperty(*, ip_rule=None, rule_desc=None)
Bases:
objectDescribes a rule for an IP access control group.
- Parameters:
ip_rule (
Optional[str]) – The IP address range, in CIDR notation.rule_desc (
Optional[str]) – The description of the rule.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_workspaces as workspaces ip_rule_item_property = workspaces.CfnWorkspaceIpGroupPropsMixin.IpRuleItemProperty( ip_rule="ipRule", rule_desc="ruleDesc" )
Attributes
- ip_rule
The IP address range, in CIDR notation.
- rule_desc
The description of the rule.