com.pulumi.aws.connect.outputs.UserIdentityInfo Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.connect.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class UserIdentityInfo {
/**
* @return The email address. If you are using SAML for identity management and include this parameter, an error is returned. Note that updates to the `email` is supported. From the [UpdateUserIdentityInfo API documentation](https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateUserIdentityInfo.html) it is strongly recommended to limit who has the ability to invoke `UpdateUserIdentityInfo`. Someone with that ability can change the login credentials of other users by changing their email address. This poses a security risk to your organization. They can change the email address of a user to the attacker's email address, and then reset the password through email. For more information, see [Best Practices for Security Profiles](https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-best-practices.html) in the Amazon Connect Administrator Guide.
*
*/
private @Nullable String email;
/**
* @return The first name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100.
*
*/
private @Nullable String firstName;
/**
* @return The last name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100.
*
*/
private @Nullable String lastName;
private UserIdentityInfo() {}
/**
* @return The email address. If you are using SAML for identity management and include this parameter, an error is returned. Note that updates to the `email` is supported. From the [UpdateUserIdentityInfo API documentation](https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateUserIdentityInfo.html) it is strongly recommended to limit who has the ability to invoke `UpdateUserIdentityInfo`. Someone with that ability can change the login credentials of other users by changing their email address. This poses a security risk to your organization. They can change the email address of a user to the attacker's email address, and then reset the password through email. For more information, see [Best Practices for Security Profiles](https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-best-practices.html) in the Amazon Connect Administrator Guide.
*
*/
public Optional email() {
return Optional.ofNullable(this.email);
}
/**
* @return The first name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100.
*
*/
public Optional firstName() {
return Optional.ofNullable(this.firstName);
}
/**
* @return The last name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100.
*
*/
public Optional lastName() {
return Optional.ofNullable(this.lastName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(UserIdentityInfo defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String email;
private @Nullable String firstName;
private @Nullable String lastName;
public Builder() {}
public Builder(UserIdentityInfo defaults) {
Objects.requireNonNull(defaults);
this.email = defaults.email;
this.firstName = defaults.firstName;
this.lastName = defaults.lastName;
}
@CustomType.Setter
public Builder email(@Nullable String email) {
this.email = email;
return this;
}
@CustomType.Setter
public Builder firstName(@Nullable String firstName) {
this.firstName = firstName;
return this;
}
@CustomType.Setter
public Builder lastName(@Nullable String lastName) {
this.lastName = lastName;
return this;
}
public UserIdentityInfo build() {
final var _resultValue = new UserIdentityInfo();
_resultValue.email = email;
_resultValue.firstName = firstName;
_resultValue.lastName = lastName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy