@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-04-20T17:18:02.066Z") @Stability(value=Stable) public class CfnUser extends CfnResource implements IInspectable
Specifies a MemoryDB user. For more information, see Authenticating users with Access Contol Lists (ACLs) .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.memorydb.*;
Object authenticationMode;
CfnUser cfnUser = CfnUser.Builder.create(this, "MyCfnUser")
.accessString("accessString")
.authenticationMode(authenticationMode)
.userName("userName")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnUser.AuthenticationModeProperty
Example:
|
static class |
CfnUser.Builder
A fluent builder for
CfnUser. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnUser(Construct scope,
String id,
CfnUserProps props)
Create a new `AWS::MemoryDB::User`.
|
protected |
CfnUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnUser(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessString()
Access permissions string used for this user.
|
String |
getAttrArn()
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the ARN of the user, such as `arn:aws:memorydb:us-east-1:123456789012:user/user1`.
|
String |
getAttrStatus()
Indicates the user status.
|
Object |
getAuthenticationMode()
Denotes whether the user requires a password to authenticate.
|
protected Map<String,Object> |
getCfnProperties() |
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
String |
getUserName()
The name of the user.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessString(String value)
Access permissions string used for this user.
|
void |
setAuthenticationMode(Object value)
Denotes whether the user requires a password to authenticate.
|
void |
setUserName(String value)
The name of the user.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnUser(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnUser(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnUserProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrStatus()
Valid values : active | modifying | deleting
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public String getAccessString()
@Stability(value=Stable)
public void setAccessString(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getAuthenticationMode()
Example:
mynewdbuser: Type: AWS::MemoryDB::User Properties: AccessString: on ~* &* +@all AuthenticationMode: Passwords: '1234567890123456' Type: password UserName: mynewdbuser AuthenticationMode: { "Passwords": ["1234567890123456"], "Type": "Password" }
@Stability(value=Stable)
public void setAuthenticationMode(@NotNull
Object value)
Example:
mynewdbuser: Type: AWS::MemoryDB::User Properties: AccessString: on ~* &* +@all AuthenticationMode: Passwords: '1234567890123456' Type: password UserName: mynewdbuser AuthenticationMode: { "Passwords": ["1234567890123456"], "Type": "Password" }
@Stability(value=Stable) @NotNull public String getUserName()
@Stability(value=Stable)
public void setUserName(@NotNull
String value)
Copyright © 2023. All rights reserved.