All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.cognito.inputs.IdentityProviderState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** 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.cognito.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class IdentityProviderState extends com.pulumi.resources.ResourceArgs {

    public static final IdentityProviderState Empty = new IdentityProviderState();

    /**
     * The map of attribute mapping of user pool attributes. [AttributeMapping in AWS API documentation](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#CognitoUserPools-CreateIdentityProvider-request-AttributeMapping)
     * 
     */
    @Import(name="attributeMapping")
    private @Nullable Output> attributeMapping;

    /**
     * @return The map of attribute mapping of user pool attributes. [AttributeMapping in AWS API documentation](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#CognitoUserPools-CreateIdentityProvider-request-AttributeMapping)
     * 
     */
    public Optional>> attributeMapping() {
        return Optional.ofNullable(this.attributeMapping);
    }

    /**
     * The list of identity providers.
     * 
     */
    @Import(name="idpIdentifiers")
    private @Nullable Output> idpIdentifiers;

    /**
     * @return The list of identity providers.
     * 
     */
    public Optional>> idpIdentifiers() {
        return Optional.ofNullable(this.idpIdentifiers);
    }

    /**
     * The map of identity details, such as access token
     * 
     */
    @Import(name="providerDetails")
    private @Nullable Output> providerDetails;

    /**
     * @return The map of identity details, such as access token
     * 
     */
    public Optional>> providerDetails() {
        return Optional.ofNullable(this.providerDetails);
    }

    /**
     * The provider name
     * 
     */
    @Import(name="providerName")
    private @Nullable Output providerName;

    /**
     * @return The provider name
     * 
     */
    public Optional> providerName() {
        return Optional.ofNullable(this.providerName);
    }

    /**
     * The provider type.  [See AWS API for valid values](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#CognitoUserPools-CreateIdentityProvider-request-ProviderType)
     * 
     */
    @Import(name="providerType")
    private @Nullable Output providerType;

    /**
     * @return The provider type.  [See AWS API for valid values](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#CognitoUserPools-CreateIdentityProvider-request-ProviderType)
     * 
     */
    public Optional> providerType() {
        return Optional.ofNullable(this.providerType);
    }

    /**
     * The user pool id
     * 
     */
    @Import(name="userPoolId")
    private @Nullable Output userPoolId;

    /**
     * @return The user pool id
     * 
     */
    public Optional> userPoolId() {
        return Optional.ofNullable(this.userPoolId);
    }

    private IdentityProviderState() {}

    private IdentityProviderState(IdentityProviderState $) {
        this.attributeMapping = $.attributeMapping;
        this.idpIdentifiers = $.idpIdentifiers;
        this.providerDetails = $.providerDetails;
        this.providerName = $.providerName;
        this.providerType = $.providerType;
        this.userPoolId = $.userPoolId;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(IdentityProviderState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private IdentityProviderState $;

        public Builder() {
            $ = new IdentityProviderState();
        }

        public Builder(IdentityProviderState defaults) {
            $ = new IdentityProviderState(Objects.requireNonNull(defaults));
        }

        /**
         * @param attributeMapping The map of attribute mapping of user pool attributes. [AttributeMapping in AWS API documentation](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#CognitoUserPools-CreateIdentityProvider-request-AttributeMapping)
         * 
         * @return builder
         * 
         */
        public Builder attributeMapping(@Nullable Output> attributeMapping) {
            $.attributeMapping = attributeMapping;
            return this;
        }

        /**
         * @param attributeMapping The map of attribute mapping of user pool attributes. [AttributeMapping in AWS API documentation](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#CognitoUserPools-CreateIdentityProvider-request-AttributeMapping)
         * 
         * @return builder
         * 
         */
        public Builder attributeMapping(Map attributeMapping) {
            return attributeMapping(Output.of(attributeMapping));
        }

        /**
         * @param idpIdentifiers The list of identity providers.
         * 
         * @return builder
         * 
         */
        public Builder idpIdentifiers(@Nullable Output> idpIdentifiers) {
            $.idpIdentifiers = idpIdentifiers;
            return this;
        }

        /**
         * @param idpIdentifiers The list of identity providers.
         * 
         * @return builder
         * 
         */
        public Builder idpIdentifiers(List idpIdentifiers) {
            return idpIdentifiers(Output.of(idpIdentifiers));
        }

        /**
         * @param idpIdentifiers The list of identity providers.
         * 
         * @return builder
         * 
         */
        public Builder idpIdentifiers(String... idpIdentifiers) {
            return idpIdentifiers(List.of(idpIdentifiers));
        }

        /**
         * @param providerDetails The map of identity details, such as access token
         * 
         * @return builder
         * 
         */
        public Builder providerDetails(@Nullable Output> providerDetails) {
            $.providerDetails = providerDetails;
            return this;
        }

        /**
         * @param providerDetails The map of identity details, such as access token
         * 
         * @return builder
         * 
         */
        public Builder providerDetails(Map providerDetails) {
            return providerDetails(Output.of(providerDetails));
        }

        /**
         * @param providerName The provider name
         * 
         * @return builder
         * 
         */
        public Builder providerName(@Nullable Output providerName) {
            $.providerName = providerName;
            return this;
        }

        /**
         * @param providerName The provider name
         * 
         * @return builder
         * 
         */
        public Builder providerName(String providerName) {
            return providerName(Output.of(providerName));
        }

        /**
         * @param providerType The provider type.  [See AWS API for valid values](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#CognitoUserPools-CreateIdentityProvider-request-ProviderType)
         * 
         * @return builder
         * 
         */
        public Builder providerType(@Nullable Output providerType) {
            $.providerType = providerType;
            return this;
        }

        /**
         * @param providerType The provider type.  [See AWS API for valid values](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#CognitoUserPools-CreateIdentityProvider-request-ProviderType)
         * 
         * @return builder
         * 
         */
        public Builder providerType(String providerType) {
            return providerType(Output.of(providerType));
        }

        /**
         * @param userPoolId The user pool id
         * 
         * @return builder
         * 
         */
        public Builder userPoolId(@Nullable Output userPoolId) {
            $.userPoolId = userPoolId;
            return this;
        }

        /**
         * @param userPoolId The user pool id
         * 
         * @return builder
         * 
         */
        public Builder userPoolId(String userPoolId) {
            return userPoolId(Output.of(userPoolId));
        }

        public IdentityProviderState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy