Class CodeSigningConfig
Defines a Code Signing Config.
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CodeSigningConfig : Resource, ICodeSigningConfig, IResource
Syntax (vb)
Public Class CodeSigningConfig
Inherits Resource
Implements ICodeSigningConfig, IResource
Remarks
Resource: AWS::Lambda::CodeSigningConfig
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Signer;
var signingProfile = new SigningProfile(this, "SigningProfile", new SigningProfileProps {
Platform = Platform.AWS_LAMBDA_SHA384_ECDSA
});
var codeSigningConfig = new CodeSigningConfig(this, "CodeSigningConfig", new CodeSigningConfigProps {
SigningProfiles = new [] { signingProfile }
});
new Function(this, "Function", new FunctionProps {
CodeSigningConfig = codeSigningConfig,
Runtime = Runtime.NODEJS_18_X,
Handler = "index.handler",
Code = Code.FromAsset(Join(__dirname, "lambda-handler"))
});
Synopsis
Constructors
CodeSigningConfig(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CodeSigningConfig(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CodeSigningConfig(Construct, String, ICodeSigningConfigProps) |
Properties
CodeSigningConfigArn | The ARN of Code Signing Config. |
CodeSigningConfigId | The id of Code Signing Config. |
Methods
FromCodeSigningConfigArn(Construct, String, String) | Creates a Signing Profile construct that represents an external Signing Profile. |
Constructors
CodeSigningConfig(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CodeSigningConfig(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CodeSigningConfig(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CodeSigningConfig(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CodeSigningConfig(Construct, String, ICodeSigningConfigProps)
public CodeSigningConfig(Construct scope, string id, ICodeSigningConfigProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props ICodeSigningConfigProps
Properties
CodeSigningConfigArn
The ARN of Code Signing Config.
public virtual string CodeSigningConfigArn { get; }
Property Value
System.String
CodeSigningConfigId
The id of Code Signing Config.
public virtual string CodeSigningConfigId { get; }
Property Value
System.String
Methods
FromCodeSigningConfigArn(Construct, String, String)
Creates a Signing Profile construct that represents an external Signing Profile.
public static ICodeSigningConfig FromCodeSigningConfigArn(Construct scope, string id, string codeSigningConfigArn)
Parameters
- scope Constructs.Construct
The parent creating construct (usually
this
).- id System.String
The construct's name.
- codeSigningConfigArn System.String
The ARN of code signing config.
Returns