Interface CreateResourceServerRequest.Builder

    • Method Detail

      • userPoolId

        CreateResourceServerRequest.Builder userPoolId​(String userPoolId)

        The user pool ID for the user pool.

        Parameters:
        userPoolId - The user pool ID for the user pool.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • identifier

        CreateResourceServerRequest.Builder identifier​(String identifier)

        A unique resource server identifier for the resource server. The identifier can be an API friendly name like solar-system-data. You can also set an API URL like https://solar-system-data-api.example.com as your identifier.

        Amazon Cognito represents scopes in the access token in the format $resource-server-identifier/$scope. Longer scope-identifier strings increase the size of your access tokens.

        Parameters:
        identifier - A unique resource server identifier for the resource server. The identifier can be an API friendly name like solar-system-data. You can also set an API URL like https://solar-system-data-api.example.com as your identifier.

        Amazon Cognito represents scopes in the access token in the format $resource-server-identifier/$scope. Longer scope-identifier strings increase the size of your access tokens.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        CreateResourceServerRequest.Builder name​(String name)

        A friendly name for the resource server.

        Parameters:
        name - A friendly name for the resource server.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • scopes

        CreateResourceServerRequest.Builder scopes​(Collection<ResourceServerScopeType> scopes)

        A list of scopes. Each scope is a key-value map with the keys name and description.

        Parameters:
        scopes - A list of scopes. Each scope is a key-value map with the keys name and description.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • scopes

        CreateResourceServerRequest.Builder scopes​(ResourceServerScopeType... scopes)

        A list of scopes. Each scope is a key-value map with the keys name and description.

        Parameters:
        scopes - A list of scopes. Each scope is a key-value map with the keys name and description.
        Returns:
        Returns a reference to this object so that method calls can be chained together.