# CfnFileSystemPolicyProps

Properties for defining a `CfnFileSystemPolicy`.

Used as props by: [CfnFileSystemPolicy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3files.CfnFileSystemPolicy.html)

- Source: Generated at build time
- Type last changed: v2.250.0 · 14 Apr 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3files as s3files } from 'aws-cdk-lib';

declare const policy: any;
const cfnFileSystemPolicyProps: s3files.CfnFileSystemPolicyProps = {
  fileSystemId: 'fileSystemId',
  policy: policy,
};
```

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_s3files as s3files

# policy: Any

cfn_file_system_policy_props = s3files.CfnFileSystemPolicyProps(
    file_system_id="fileSystemId",
    policy=policy
)
```

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.s3files.*;

Object policy;

CfnFileSystemPolicyProps cfnFileSystemPolicyProps = CfnFileSystemPolicyProps.builder()
        .fileSystemId("fileSystemId")
        .policy(policy)
        .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.S3Files;

var policy;

var cfnFileSystemPolicyProps = new CfnFileSystemPolicyProps {
    FileSystemId = "fileSystemId",
    Policy = policy
};
```

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"

var policy interface{}

cfnFileSystemPolicyProps := &CfnFileSystemPolicyProps{
	FileSystemId: jsii.String("fileSystemId"),
	Policy: policy,
}
```

## Properties

- `fileSystemId`: string (required)

- `policy`: any (required)
