CfnIpAccessSettingsProps Struct
Properties for defining a CfnIpAccessSettings.
| 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_workspacesweb as workspacesweb } from 'aws-cdk-lib';
const cfnIpAccessSettingsProps: workspacesweb.CfnIpAccessSettingsProps = {
ipRules: [{
ipRange: 'ipRange',
// the properties below are optional
description: 'description',
}],
// the properties below are optional
additionalEncryptionContext: {
additionalEncryptionContextKey: 'additionalEncryptionContext',
},
customerManagedKey: 'customerManagedKey',
description: 'description',
displayName: 'displayName',
tags: [{
key: 'key',
value: 'value',
}],
};
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_workspacesweb as workspacesweb
cfn_ip_access_settings_props = workspacesweb.CfnIpAccessSettingsProps(
ip_rules=[workspacesweb.CfnIpAccessSettings.IpRuleProperty(
ip_range="ipRange",
# the properties below are optional
description="description"
)],
# the properties below are optional
additional_encryption_context={
"additional_encryption_context_key": "additionalEncryptionContext"
},
customer_managed_key="customerManagedKey",
description="description",
display_name="displayName",
tags=[CfnTag(
key="key",
value="value"
)]
)
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.*;
CfnIpAccessSettingsProps cfnIpAccessSettingsProps = CfnIpAccessSettingsProps.builder()
.ipRules(List.of(IpRuleProperty.builder()
.ipRange("ipRange")
// the properties below are optional
.description("description")
.build()))
// the properties below are optional
.additionalEncryptionContext(Map.of(
"additionalEncryptionContextKey", "additionalEncryptionContext"))
.customerManagedKey("customerManagedKey")
.description("description")
.displayName("displayName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.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.WorkSpacesWeb;
var cfnIpAccessSettingsProps = new CfnIpAccessSettingsProps {
IpRules = new [] { new IpRuleProperty {
IpRange = "ipRange",
// the properties below are optional
Description = "description"
} },
// the properties below are optional
AdditionalEncryptionContext = new Dictionary<string, string> {
{ "additionalEncryptionContextKey", "additionalEncryptionContext" }
},
CustomerManagedKey = "customerManagedKey",
Description = "description",
DisplayName = "displayName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnIpAccessSettingsProps := &CfnIpAccessSettingsProps{
IpRules: []interface{}{
&IpRuleProperty{
IpRange: jsii.String("ipRange"),
// the properties below are optional
Description: jsii.String("description"),
},
},
// the properties below are optional
AdditionalEncryptionContext: map[string]*string{
"additionalEncryptionContextKey": jsii.String("additionalEncryptionContext"),
},
CustomerManagedKey: jsii.String("customerManagedKey"),
Description: jsii.String("description"),
DisplayName: jsii.String("displayName"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
additionalEncryptionContextoptionalIResolvable | { [key: string]: string }additional_encryption_contextoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]additionalEncryptionContextoptionalIResolvableAdditionalEncryptionContextoptionalIResolvableAdditionalEncryptionContextoptionalinterface{} #Additional encryption context of the IP access settings.
customerManagedKeyoptionalstringcustomer_managed_keyoptionalstrcustomerManagedKeyoptionalStringCustomerManagedKeyoptionalstringCustomerManagedKeyoptional*string #The custom managed key of the IP access settings.
Pattern : ^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the IP access settings.
displayNameoptionalstringdisplay_nameoptionalstrdisplayNameoptionalStringDisplayNameoptionalstringDisplayNameoptional*string #The display name of the IP access settings.
ipRulesIResolvable | IResolvable | CfnIpAccessSettings.ip_rulestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IpRuleProperty]]]ipRulesIResolvableIpRulesIResolvableIpRulesinterface{} required #The IP rules of the IP access settings.