Try AWS Native preview for resources not in the classic version.
aws.lambda.getCodeSigningConfig
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const existingCsc = aws.lambda.getCodeSigningConfig({
arn: `arn:aws:lambda:${awsRegion}:${awsAccount}:code-signing-config:csc-0f6c334abcdea4d8b`,
});
import pulumi
import pulumi_aws as aws
existing_csc = aws.lambda.get_code_signing_config(arn=f"arn:aws:lambda:{aws_region}:{aws_account}:code-signing-config:csc-0f6c334abcdea4d8b")
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v6/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", awsRegion, awsAccount),
}, 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 existingCsc = Aws.Lambda.GetCodeSigningConfig.Invoke(new()
{
Arn = $"arn:aws:lambda:{awsRegion}:{awsAccount}:code-signing-config:csc-0f6c334abcdea4d8b",
});
});
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", awsRegion,awsAccount))
.build());
}
}
variables:
existingCsc:
fn::invoke:
Function: aws:lambda:getCodeSigningConfig
Arguments:
arn: arn:aws:lambda:${awsRegion}:${awsAccount}: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:
- Allowed
Publishers List<GetCode Signing Config Allowed Publisher> - List of allowed publishers as signing profiles for this code signing configuration.
- Arn string
- Config
Id 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.
- Last
Modified string - Date and time that the code signing configuration was last modified.
- Policies
List<Get
Code Signing Config Policy> - List of code signing policies that control the validation failure action for signature mismatch or expiry.
- Allowed
Publishers []GetCode Signing Config Allowed Publisher - List of allowed publishers as signing profiles for this code signing configuration.
- Arn string
- Config
Id 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.
- Last
Modified string - Date and time that the code signing configuration was last modified.
- Policies
[]Get
Code Signing Config Policy - List of code signing policies that control the validation failure action for signature mismatch or expiry.
- allowed
Publishers List<GetCode Signing Config Allowed Publisher> - List of allowed publishers as signing profiles for this code signing configuration.
- arn String
- config
Id 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.
- last
Modified String - Date and time that the code signing configuration was last modified.
- policies
List<Get
Code Signing Config Policy> - List of code signing policies that control the validation failure action for signature mismatch or expiry.
- allowed
Publishers GetCode Signing Config Allowed Publisher[] - List of allowed publishers as signing profiles for this code signing configuration.
- arn string
- config
Id 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.
- last
Modified string - Date and time that the code signing configuration was last modified.
- policies
Get
Code Signing Config Policy[] - List of code signing policies that control the validation failure action for signature mismatch or expiry.
- allowed_
publishers Sequence[lambda_.Get Code Signing Config Allowed Publisher] - 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
Sequence[lambda_.
Get Code Signing Config Policy] - List of code signing policies that control the validation failure action for signature mismatch or expiry.
- allowed
Publishers List<Property Map> - List of allowed publishers as signing profiles for this code signing configuration.
- arn String
- config
Id 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.
- last
Modified 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
- Signing
Profile List<string>Version Arns - The ARN for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
- Signing
Profile []stringVersion Arns - The ARN for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
- signing
Profile List<String>Version Arns - The ARN for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
- signing
Profile string[]Version Arns - The ARN for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
- signing_
profile_ Sequence[str]version_ arns - The ARN for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
- signing
Profile List<String>Version Arns - The ARN for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
GetCodeSigningConfigPolicy
- Untrusted
Artifact stringOn Deployment - Code signing configuration policy for deployment validation failure.
- Untrusted
Artifact stringOn Deployment - Code signing configuration policy for deployment validation failure.
- untrusted
Artifact StringOn Deployment - Code signing configuration policy for deployment validation failure.
- untrusted
Artifact stringOn Deployment - Code signing configuration policy for deployment validation failure.
- untrusted_
artifact_ stron_ deployment - Code signing configuration policy for deployment validation failure.
- untrusted
Artifact StringOn Deployment - Code signing configuration policy for deployment validation failure.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.