# AccessScopeProperty

The scope of an `AccessPolicy` that's associated to an `AccessEntry` .

- Source: Generated at build time
- Type last changed: v2.117.0 · 27 Dec 2023

## Example

TypeScript:

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

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

```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();
```

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.EKS;

var accessScopeProperty = new AccessScopeProperty {
    Type = "type",

    // the properties below are optional
    Namespaces = new [] { "namespaces" }
};
```

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"

accessScopeProperty := &AccessScopeProperty{
	Type: jsii.String("type"),

	// the properties below are optional
	Namespaces: []*string{
		jsii.String("namespaces"),
	},
}
```

## Properties

- `namespaces`: string[] — A Kubernetes `namespace` that an access policy is scoped to.

  A value is required if you specified `namespace` for `Type` .

- `type`: string (required) — The scope type of an access policy.
