software.amazon.jsii.JsiiObject.InitializationModeUserProps.Builder, UserProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(List<? extends IGroup> groups,
List<? extends IManagedPolicy> managedPolicies,
SecretValue password,
Boolean passwordResetRequired,
String path,
IManagedPolicy permissionsBoundary,
String userName)
Constructor that initializes the object based on literal property values passed by the
UserProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
List<IGroup> |
getGroups()
(experimental) Groups to add this user to.
|
List<IManagedPolicy> |
getManagedPolicies()
(experimental) A list of managed policies associated with this role.
|
SecretValue |
getPassword()
(experimental) The password for the user.
|
Boolean |
getPasswordResetRequired()
(experimental) Specifies whether the user is required to set a new password the next time the user logs in to the AWS Management Console.
|
String |
getPath()
(experimental) The path for the user name.
|
IManagedPolicy |
getPermissionsBoundary()
(experimental) AWS supports permissions boundaries for IAM entities (users or roles).
|
String |
getUserName()
(experimental) A name for the IAM user.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(List<? extends IGroup> groups, List<? extends IManagedPolicy> managedPolicies, SecretValue password, Boolean passwordResetRequired, String path, IManagedPolicy permissionsBoundary, String userName)
UserProps.Builder.public final List<IGroup> getGroups()
UserProps
You can also use addToGroup to add this
user to a group.
Default: - No groups.
public final List<IManagedPolicy> getManagedPolicies()
UserProps
You can add managed policies later using
addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName)).
Default: - No managed policies.
getManagedPolicies in interface UserPropspublic final SecretValue getPassword()
UserProps
You can use SecretValue.plainText to specify a password in plain text or
use secretsmanager.Secret.fromSecretAttributes to reference a secret in
Secrets Manager.
Default: - User won't be able to access the management console without a password.
getPassword in interface UserPropspublic final Boolean getPasswordResetRequired()
UserPropsIf this is set to 'true', you must also specify "initialPassword".
Default: false
getPasswordResetRequired in interface UserPropspublic final String getPath()
UserPropsFor more information about paths, see IAM Identifiers in the IAM User Guide.
Default: /
public final IManagedPolicy getPermissionsBoundary()
UserPropsA permissions boundary is an advanced feature for using a managed policy to set the maximum permissions that an identity-based policy can grant to an IAM entity. An entity's permissions boundary allows it to perform only the actions that are allowed by both its identity-based policies and its permissions boundaries.
Default: - No permissions boundary.
getPermissionsBoundary in interface UserPropspublic final String getUserName()
UserPropsFor valid values, see the UserName parameter for the CreateUser action in the IAM API Reference. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the user name.
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to acknowledge your template's capabilities. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.
Default: - Generated by CloudFormation (recommended)
getUserName in interface UserProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.