class ServerlessCacheGrants
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElastiCache.Alpha.ServerlessCacheGrants |
Go | github.com/aws/aws-cdk-go/awscdkelasticachealpha/v2#ServerlessCacheGrants |
Java | software.amazon.awscdk.services.elasticache.alpha.ServerlessCacheGrants |
Python | aws_cdk.aws_elasticache_alpha.ServerlessCacheGrants |
TypeScript | @aws-cdk/aws-elasticache-alpha ยป ServerlessCacheGrants |
Collection of grant methods for a IServerlessCacheRef.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as elasticache_alpha from '@aws-cdk/aws-elasticache-alpha';
import { aws_elasticache as interfaces_elasticache } from 'aws-cdk-lib/interfaces';
declare const serverlessCacheRef: interfaces_elasticache.IServerlessCacheRef;
const serverlessCacheGrants = elasticache_alpha.ServerlessCacheGrants.fromServerlessCache(serverlessCacheRef);
Properties
| Name | Type | Description |
|---|---|---|
| resource | IServerless |
resource
Type:
IServerless
Methods
| Name | Description |
|---|---|
| connect(grantee) | Grant connect permissions to the cache. |
| static from | Creates grants for ServerlessCacheGrants. |
connect(grantee)
public connect(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
Grant connect permissions to the cache.
static fromServerlessCache(resource)
public static fromServerlessCache(resource: IServerlessCacheRef): ServerlessCacheGrants
Parameters
- resource
IServerlessCache Ref
Returns
Creates grants for ServerlessCacheGrants.

.NET
Go
Java
Python
TypeScript