ServerlessCacheGrants

class aws_cdk.aws_elasticache_alpha.ServerlessCacheGrants(*args: Any, **kwargs)

Bases: object

(experimental) Collection of grant methods for a IServerlessCacheRef.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_elasticache_alpha as elasticache_alpha
from aws_cdk.interfaces import aws_elasticache as interfaces_elasticache

# serverless_cache_ref: interfaces_elasticache.IServerlessCacheRef

serverless_cache_grants = elasticache_alpha.ServerlessCacheGrants.from_serverless_cache(serverless_cache_ref)

Methods

connect(grantee)

(experimental) Grant connect permissions to the cache.

Parameters:

grantee (IGrantable)

Stability:

experimental

Return type:

Grant

Static Methods

classmethod from_serverless_cache(resource)

(experimental) Creates grants for ServerlessCacheGrants.

Parameters:

resource (IServerlessCacheRef)

Stability:

experimental

Return type:

ServerlessCacheGrants