@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:31.430Z") @Stability(value=Experimental) public interface UserProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
UserProps.Builder
A builder for
UserProps |
static class |
UserProps.Jsii$Proxy
An implementation for
UserProps |
| Modifier and Type | Method and Description |
|---|---|
static UserProps.Builder |
builder() |
default List<IGroup> |
getGroups()
(experimental) Groups to add this user to.
|
default List<IManagedPolicy> |
getManagedPolicies()
(experimental) A list of managed policies associated with this role.
|
default SecretValue |
getPassword()
(experimental) The password for the user.
|
default 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.
|
default String |
getPath()
(experimental) The path for the user name.
|
default IManagedPolicy |
getPermissionsBoundary()
(experimental) AWS supports permissions boundaries for IAM entities (users or roles).
|
default String |
getUserName()
(experimental) A name for the IAM user.
|
@Stability(value=Experimental) @Nullable default List<IGroup> getGroups()
You can also use addToGroup to add this
user to a group.
Default: - No groups.
@Stability(value=Experimental) @Nullable default List<IManagedPolicy> getManagedPolicies()
You can add managed policies later using
addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName)).
Default: - No managed policies.
@Stability(value=Experimental) @Nullable default SecretValue getPassword()
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.
@Stability(value=Experimental) @Nullable default Boolean getPasswordResetRequired()
If this is set to 'true', you must also specify "initialPassword".
Default: false
@Stability(value=Experimental) @Nullable default String getPath()
For more information about paths, see IAM Identifiers in the IAM User Guide.
Default: /
@Stability(value=Experimental) @Nullable default IManagedPolicy getPermissionsBoundary()
A 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.
@Stability(value=Experimental) @Nullable default String getUserName()
For 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)
@Stability(value=Experimental) static UserProps.Builder builder()
UserProps.Builder of UserPropsCopyright © 2021. All rights reserved.