AccessScopeProperty Struct
The scope of an AccessPolicy that's associated to an AccessEntry .
| 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_eks as eks } from 'aws-cdk-lib';
const accessScopeProperty: eks.CfnAccessEntry.AccessScopeProperty = {
type: 'type',
// the properties below are optional
namespaces: ['namespaces'],
};
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_eks as eks
access_scope_property = eks.CfnAccessEntry.AccessScopeProperty(
type="type",
# the properties below are optional
namespaces=["namespaces"]
)
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.eks.*;
AccessScopeProperty accessScopeProperty = AccessScopeProperty.builder()
.type("type")
// the properties below are optional
.namespaces(List.of("namespaces"))
.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.EKS;
var accessScopeProperty = new AccessScopeProperty {
Type = "type",
// the properties below are optional
Namespaces = new [] { "namespaces" }
};
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"
accessScopeProperty := &AccessScopeProperty{
Type: jsii.String("type"),
// the properties below are optional
Namespaces: []*string{
jsii.String("namespaces"),
},
}
Properties
namespacesoptionalstring[]namespacesoptionaltyping.List[str]namespacesoptionalList<String>Namespacesoptionalstring[]Namespacesoptional*[]*string #A Kubernetes `namespace` that an access policy is scoped to.
A value is required if you specified namespace for Type .
The scope type of an access policy.