Experimental
@aws-cdk/aws-elasticache-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ServerlessCacheGrants Facade
Collection of grant methods for a IServerlessCacheRef.
Example
ts
// 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);
Methods
actions(grantee: IGrantable, actions: string[], options?: PermissionsOptions): Grantdef actions(self, grantee: IGrantable, actions: typing.List[str], options: typing.Optional[PermissionsOptions] = None) -> Grantpublic Grant actions(IGrantable grantee, List<String> actions, PermissionsOptions options)public Grant Actions(IGrantable grantee, string[] actions, PermissionsOptions? options = null)func Actions(Grantee IGrantable, Actions *[]*string, Options PermissionsOptions) Grant#Grant the given identity custom permissions.
connect(grantee: IGrantable): Grantdef connect(self, grantee: IGrantable) -> Grantpublic Grant connect(IGrantable grantee)public Grant Connect(IGrantable grantee)func Connect(Grantee IGrantable) Grant#Grant connect permissions to the cache.
fromServerlessCache(resource: IServerlessCacheRef): ServerlessCacheGrants // chainable@staticmethod def from_serverless_cache(resource: IServerlessCacheRef) -> ServerlessCacheGrantspublic static ServerlessCacheGrants fromServerlessCache(IServerlessCacheRef resource)public static ServerlessCacheGrants FromServerlessCache(IServerlessCacheRef resource)func FromServerlessCache(Resource IServerlessCacheRef) ServerlessCacheGrantsstatic#Creates grants for ServerlessCacheGrants.