AWS Classic

v5.16.0 published on Saturday, Sep 24, 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 System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var existingCsc = Aws.Lambda.GetCodeSigningConfig.Invoke(new()
    {
        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("arn:aws:lambda:%v:%v:code-signing-config:csc-0f6c334abcdea4d8b", _var.Aws_region, _var.Aws_account),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.LambdaFunctions;
import com.pulumi.aws.lambda.inputs.GetCodeSigningConfigArgs;
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 existingCsc = 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

ARN of the code signing configuration.

Arn string

ARN of the code signing configuration.

arn String

ARN of the code signing configuration.

arn string

ARN of the code signing configuration.

arn str

ARN of the code signing configuration.

arn String

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

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

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

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

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

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

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 ARN for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

SigningProfileVersionArns []string

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

signingProfileVersionArns List<String>

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

signingProfileVersionArns string[]

The 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 ARN for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

signingProfileVersionArns List<String>

The 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.