1. Packages
  2. AWS Classic
  3. API Docs
  4. lb
  5. getTrustStore

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

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

aws.lb.getTrustStore

Explore with Pulumi AI

aws logo

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

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

    Note: aws_alb_trust_store is known as aws.lb.TrustStore. The functionality is identical.

    Provides information about a Load Balancer Trust Store.

    This data source can prove useful when a module accepts an LB Trust Store as an input variable and needs to know its attributes. It can also be used to get the ARN of an LB Trust Store for use in other resources, given LB Trust Store name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const config = new pulumi.Config();
    const lbTsArn = config.get("lbTsArn") || "";
    const lbTsName = config.get("lbTsName") || "";
    const test = aws.lb.getTrustStore({
        arn: lbTsArn,
        name: lbTsName,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    config = pulumi.Config()
    lb_ts_arn = config.get("lbTsArn")
    if lb_ts_arn is None:
        lb_ts_arn = ""
    lb_ts_name = config.get("lbTsName")
    if lb_ts_name is None:
        lb_ts_name = ""
    test = aws.lb.get_trust_store(arn=lb_ts_arn,
        name=lb_ts_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		lbTsArn := ""
    		if param := cfg.Get("lbTsArn"); param != "" {
    			lbTsArn = param
    		}
    		lbTsName := ""
    		if param := cfg.Get("lbTsName"); param != "" {
    			lbTsName = param
    		}
    		_, err := lb.LookupTrustStore(ctx, &lb.LookupTrustStoreArgs{
    			Arn:  pulumi.StringRef(lbTsArn),
    			Name: pulumi.StringRef(lbTsName),
    		}, 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 config = new Config();
        var lbTsArn = config.Get("lbTsArn") ?? "";
        var lbTsName = config.Get("lbTsName") ?? "";
        var test = Aws.LB.GetTrustStore.Invoke(new()
        {
            Arn = lbTsArn,
            Name = lbTsName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.lb.LbFunctions;
    import com.pulumi.aws.lb.inputs.GetTrustStoreArgs;
    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 config = ctx.config();
            final var lbTsArn = config.get("lbTsArn").orElse("");
            final var lbTsName = config.get("lbTsName").orElse("");
            final var test = LbFunctions.getTrustStore(GetTrustStoreArgs.builder()
                .arn(lbTsArn)
                .name(lbTsName)
                .build());
    
        }
    }
    
    configuration:
      lbTsArn:
        type: string
        default:
      lbTsName:
        type: string
        default:
    variables:
      test:
        fn::invoke:
          Function: aws:lb:getTrustStore
          Arguments:
            arn: ${lbTsArn}
            name: ${lbTsName}
    

    Using getTrustStore

    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 getTrustStore(args: GetTrustStoreArgs, opts?: InvokeOptions): Promise<GetTrustStoreResult>
    function getTrustStoreOutput(args: GetTrustStoreOutputArgs, opts?: InvokeOptions): Output<GetTrustStoreResult>
    def get_trust_store(arn: Optional[str] = None,
                        name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetTrustStoreResult
    def get_trust_store_output(arn: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetTrustStoreResult]
    func LookupTrustStore(ctx *Context, args *LookupTrustStoreArgs, opts ...InvokeOption) (*LookupTrustStoreResult, error)
    func LookupTrustStoreOutput(ctx *Context, args *LookupTrustStoreOutputArgs, opts ...InvokeOption) LookupTrustStoreResultOutput

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

    public static class GetTrustStore 
    {
        public static Task<GetTrustStoreResult> InvokeAsync(GetTrustStoreArgs args, InvokeOptions? opts = null)
        public static Output<GetTrustStoreResult> Invoke(GetTrustStoreInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTrustStoreResult> getTrustStore(GetTrustStoreArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:lb/getTrustStore:getTrustStore
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Arn string
    Full ARN of the trust store.
    Name string

    Unique name of the trust store.

    NOTE: When both arn and name are specified, arn takes precedence.

    Arn string
    Full ARN of the trust store.
    Name string

    Unique name of the trust store.

    NOTE: When both arn and name are specified, arn takes precedence.

    arn String
    Full ARN of the trust store.
    name String

    Unique name of the trust store.

    NOTE: When both arn and name are specified, arn takes precedence.

    arn string
    Full ARN of the trust store.
    name string

    Unique name of the trust store.

    NOTE: When both arn and name are specified, arn takes precedence.

    arn str
    Full ARN of the trust store.
    name str

    Unique name of the trust store.

    NOTE: When both arn and name are specified, arn takes precedence.

    arn String
    Full ARN of the trust store.
    name String

    Unique name of the trust store.

    NOTE: When both arn and name are specified, arn takes precedence.

    getTrustStore Result

    The following output properties are available:

    Arn string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Arn string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    arn String
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    arn string
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    arn str
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    arn String
    id String
    The provider-assigned unique ID for this managed resource.
    name 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.32.0 published on Friday, Apr 19, 2024 by Pulumi