PermissionsOptions Struct
Options for configuring permissions in the <Resource>.actions() method.
| Source | core/lib/grants.ts |
|---|---|
| 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 * as cdk from 'aws-cdk-lib';
const permissionsOptions: cdk.PermissionsOptions = {
resourceArns: ['resourceArns'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
permissions_options = cdk.PermissionsOptions(
resource_arns=["resourceArns"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
PermissionsOptions permissionsOptions = PermissionsOptions.builder()
.resourceArns(List.of("resourceArns"))
.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;
var permissionsOptions = new PermissionsOptions {
ResourceArns = new [] { "resourceArns" }
};
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 cdk "github.com/aws/aws-cdk-go/awscdk"
permissionsOptions := &PermissionsOptions{
ResourceArns: []*string{
jsii.String("resourceArns"),
},
}
Properties
resourceArnsoptionalstring[]resource_arnsoptionaltyping.List[str]resourceArnsoptionalList<String>ResourceArnsoptionalstring[]ResourceArnsoptional*[]*string #The ARNs of the resources to grant permissions on.
Default: The ARN of the resource associated with the grant is used.