1. Packages
  2. AWS Classic
  3. API Docs
  4. cognito
  5. getUserPoolSigningCertificate

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.cognito.getUserPoolSigningCertificate

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Use this data source to get the signing certificate for a Cognito IdP user pool.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const sc = aws.cognito.getUserPoolSigningCertificate({
        userPoolId: myPool.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    sc = aws.cognito.get_user_pool_signing_certificate(user_pool_id=my_pool["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cognito"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cognito.GetUserPoolSigningCertificate(ctx, &cognito.GetUserPoolSigningCertificateArgs{
    			UserPoolId: myPool.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var sc = Aws.Cognito.GetUserPoolSigningCertificate.Invoke(new()
        {
            UserPoolId = myPool.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.cognito.CognitoFunctions;
    import com.pulumi.aws.cognito.inputs.GetUserPoolSigningCertificateArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var sc = CognitoFunctions.getUserPoolSigningCertificate(GetUserPoolSigningCertificateArgs.builder()
                .userPoolId(myPool.id())
                .build());
    
        }
    }
    
    variables:
      sc:
        fn::invoke:
          Function: aws:cognito:getUserPoolSigningCertificate
          Arguments:
            userPoolId: ${myPool.id}
    

    Using getUserPoolSigningCertificate

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getUserPoolSigningCertificate(args: GetUserPoolSigningCertificateArgs, opts?: InvokeOptions): Promise<GetUserPoolSigningCertificateResult>
    function getUserPoolSigningCertificateOutput(args: GetUserPoolSigningCertificateOutputArgs, opts?: InvokeOptions): Output<GetUserPoolSigningCertificateResult>
    def get_user_pool_signing_certificate(user_pool_id: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetUserPoolSigningCertificateResult
    def get_user_pool_signing_certificate_output(user_pool_id: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetUserPoolSigningCertificateResult]
    func GetUserPoolSigningCertificate(ctx *Context, args *GetUserPoolSigningCertificateArgs, opts ...InvokeOption) (*GetUserPoolSigningCertificateResult, error)
    func GetUserPoolSigningCertificateOutput(ctx *Context, args *GetUserPoolSigningCertificateOutputArgs, opts ...InvokeOption) GetUserPoolSigningCertificateResultOutput

    > Note: This function is named GetUserPoolSigningCertificate in the Go SDK.

    public static class GetUserPoolSigningCertificate 
    {
        public static Task<GetUserPoolSigningCertificateResult> InvokeAsync(GetUserPoolSigningCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetUserPoolSigningCertificateResult> Invoke(GetUserPoolSigningCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUserPoolSigningCertificateResult> getUserPoolSigningCertificate(GetUserPoolSigningCertificateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:cognito/getUserPoolSigningCertificate:getUserPoolSigningCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    UserPoolId string
    Cognito user pool ID.
    UserPoolId string
    Cognito user pool ID.
    userPoolId String
    Cognito user pool ID.
    userPoolId string
    Cognito user pool ID.
    user_pool_id str
    Cognito user pool ID.
    userPoolId String
    Cognito user pool ID.

    getUserPoolSigningCertificate Result

    The following output properties are available:

    Certificate string
    Certificate string
    Id string
    The provider-assigned unique ID for this managed resource.
    UserPoolId string
    Certificate string
    Certificate string
    Id string
    The provider-assigned unique ID for this managed resource.
    UserPoolId string
    certificate String
    Certificate string
    id String
    The provider-assigned unique ID for this managed resource.
    userPoolId String
    certificate string
    Certificate string
    id string
    The provider-assigned unique ID for this managed resource.
    userPoolId string
    certificate str
    Certificate string
    id str
    The provider-assigned unique ID for this managed resource.
    user_pool_id str
    certificate String
    Certificate string
    id String
    The provider-assigned unique ID for this managed resource.
    userPoolId String

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi