CfnACLProps Struct
Properties for defining a CfnACL.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_memorydb as memorydb } from 'aws-cdk-lib';
const cfnACLProps: memorydb.CfnACLProps = {
aclName: 'aclName',
// the properties below are optional
tags: [{
key: 'key',
value: 'value',
}],
userNames: ['userNames'],
};
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_memorydb as memorydb
cfn_acl_props = memorydb.CfnACLProps(
acl_name="aclName",
# the properties below are optional
tags=[CfnTag(
key="key",
value="value"
)],
user_names=["userNames"]
)
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.memorydb.*;
CfnACLProps cfnACLProps = CfnACLProps.builder()
.aclName("aclName")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.userNames(List.of("userNames"))
.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.MemoryDB;
var cfnACLProps = new CfnACLProps {
AclName = "aclName",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
UserNames = new [] { "userNames" }
};
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"
cfnACLProps := &CfnACLProps{
AclName: jsii.String("aclName"),
// the properties below are optional
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
UserNames: []*string{
jsii.String("userNames"),
},
}
Properties
The name of the Access Control List.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#An array of key-value pairs to apply to this resource.
For more information, see Tag .
userNamesoptionalstring[]user_namesoptionaltyping.List[str]userNamesoptionalList<String>UserNamesoptionalstring[]UserNamesoptional*[]*string#The list of users that belong to the Access Control List.