AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.5.0 published on Wednesday, May 25, 2022 by Pulumi

getCodeSigningConfig

Provides information about a Lambda Code Signing Config. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).

For information about Lambda code signing configurations and how to use them, see configuring code signing for Lambda functions

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var existingCsc = Output.Create(Aws.Lambda.GetCodeSigningConfig.InvokeAsync(new Aws.Lambda.GetCodeSigningConfigArgs
        {
            Arn = $"arn:aws:lambda:{@var.Aws_region}:{@var.Aws_account}:code-signing-config:csc-0f6c334abcdea4d8b",
        }));
    }

}
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lambda"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.LookupCodeSigningConfig(ctx, &lambda.LookupCodeSigningConfigArgs{
			Arn: fmt.Sprintf("%v%v%v%v%v", "arn:aws:lambda:", _var.Aws_region, ":", _var.Aws_account, ":code-signing-config:csc-0f6c334abcdea4d8b"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var existingCsc = Output.of(LambdaFunctions.getCodeSigningConfig(GetCodeSigningConfigArgs.builder()
            .arn(String.format("arn:aws:lambda:%s:%s:code-signing-config:csc-0f6c334abcdea4d8b", var_.aws_region(),var_.aws_account()))
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

existing_csc = aws.lambda.get_code_signing_config(arn=f"arn:aws:lambda:{var['aws_region']}:{var['aws_account']}:code-signing-config:csc-0f6c334abcdea4d8b")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const existingCsc = pulumi.output(aws.lambda.getCodeSigningConfig({
    arn: `arn:aws:lambda:${var_aws_region}:${var_aws_account}:code-signing-config:csc-0f6c334abcdea4d8b`,
}));
variables:
  existingCsc:
    Fn::Invoke:
      Function: aws:lambda:getCodeSigningConfig
      Arguments:
        arn: arn:aws:lambda:${var.aws_region}:${var.aws_account}:code-signing-config:csc-0f6c334abcdea4d8b

Using getCodeSigningConfig

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 getCodeSigningConfig(args: GetCodeSigningConfigArgs, opts?: InvokeOptions): Promise<GetCodeSigningConfigResult>
function getCodeSigningConfigOutput(args: GetCodeSigningConfigOutputArgs, opts?: InvokeOptions): Output<GetCodeSigningConfigResult>
def get_code_signing_config(arn: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetCodeSigningConfigResult
def get_code_signing_config_output(arn: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetCodeSigningConfigResult]
func LookupCodeSigningConfig(ctx *Context, args *LookupCodeSigningConfigArgs, opts ...InvokeOption) (*LookupCodeSigningConfigResult, error)
func LookupCodeSigningConfigOutput(ctx *Context, args *LookupCodeSigningConfigOutputArgs, opts ...InvokeOption) LookupCodeSigningConfigResultOutput

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

public static class GetCodeSigningConfig 
{
    public static Task<GetCodeSigningConfigResult> InvokeAsync(GetCodeSigningConfigArgs args, InvokeOptions? opts = null)
    public static Output<GetCodeSigningConfigResult> Invoke(GetCodeSigningConfigInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCodeSigningConfigResult> getCodeSigningConfig(GetCodeSigningConfigArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:lambda/getCodeSigningConfig:getCodeSigningConfig
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Arn string

The Amazon Resource Name (ARN) of the code signing configuration.

Arn string

The Amazon Resource Name (ARN) of the code signing configuration.

arn String

The Amazon Resource Name (ARN) of the code signing configuration.

arn string

The Amazon Resource Name (ARN) of the code signing configuration.

arn str

The Amazon Resource Name (ARN) of the code signing configuration.

arn String

The Amazon Resource Name (ARN) of the code signing configuration.

getCodeSigningConfig Result

The following output properties are available:

AllowedPublishers List<GetCodeSigningConfigAllowedPublisher>

List of allowed publishers as signing profiles for this code signing configuration.

Arn string
ConfigId string

Unique identifier for the code signing configuration.

Description string

Code signing configuration description.

Id string

The provider-assigned unique ID for this managed resource.

LastModified string

The date and time that the code signing configuration was last modified.

Policies List<GetCodeSigningConfigPolicy>

List of code signing policies that control the validation failure action for signature mismatch or expiry.

AllowedPublishers []GetCodeSigningConfigAllowedPublisher

List of allowed publishers as signing profiles for this code signing configuration.

Arn string
ConfigId string

Unique identifier for the code signing configuration.

Description string

Code signing configuration description.

Id string

The provider-assigned unique ID for this managed resource.

LastModified string

The date and time that the code signing configuration was last modified.

Policies []GetCodeSigningConfigPolicy

List of code signing policies that control the validation failure action for signature mismatch or expiry.

allowedPublishers List<GetCodeSigningConfigAllowedPublisher>

List of allowed publishers as signing profiles for this code signing configuration.

arn String
configId String

Unique identifier for the code signing configuration.

description String

Code signing configuration description.

id String

The provider-assigned unique ID for this managed resource.

lastModified String

The date and time that the code signing configuration was last modified.

policies List<GetCodeSigningConfigPolicy>

List of code signing policies that control the validation failure action for signature mismatch or expiry.

allowedPublishers GetCodeSigningConfigAllowedPublisher[]

List of allowed publishers as signing profiles for this code signing configuration.

arn string
configId string

Unique identifier for the code signing configuration.

description string

Code signing configuration description.

id string

The provider-assigned unique ID for this managed resource.

lastModified string

The date and time that the code signing configuration was last modified.

policies GetCodeSigningConfigPolicy[]

List of code signing policies that control the validation failure action for signature mismatch or expiry.

allowed_publishers GetCodeSigningConfigAllowedPublisher]

List of allowed publishers as signing profiles for this code signing configuration.

arn str
config_id str

Unique identifier for the code signing configuration.

description str

Code signing configuration description.

id str

The provider-assigned unique ID for this managed resource.

last_modified str

The date and time that the code signing configuration was last modified.

policies GetCodeSigningConfigPolicy]

List of code signing policies that control the validation failure action for signature mismatch or expiry.

allowedPublishers List<Property Map>

List of allowed publishers as signing profiles for this code signing configuration.

arn String
configId String

Unique identifier for the code signing configuration.

description String

Code signing configuration description.

id String

The provider-assigned unique ID for this managed resource.

lastModified String

The date and time that the code signing configuration was last modified.

policies List<Property Map>

List of code signing policies that control the validation failure action for signature mismatch or expiry.

Supporting Types

GetCodeSigningConfigAllowedPublisher

SigningProfileVersionArns List<string>

The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

SigningProfileVersionArns []string

The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

signingProfileVersionArns List<String>

The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

signingProfileVersionArns string[]

The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

signing_profile_version_arns Sequence[str]

The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

signingProfileVersionArns List<String>

The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

GetCodeSigningConfigPolicy

UntrustedArtifactOnDeployment string

Code signing configuration policy for deployment validation failure.

UntrustedArtifactOnDeployment string

Code signing configuration policy for deployment validation failure.

untrustedArtifactOnDeployment String

Code signing configuration policy for deployment validation failure.

untrustedArtifactOnDeployment string

Code signing configuration policy for deployment validation failure.

untrusted_artifact_on_deployment str

Code signing configuration policy for deployment validation failure.

untrustedArtifactOnDeployment String

Code signing configuration policy for deployment validation failure.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.