-
Notifications
You must be signed in to change notification settings - Fork 17
/
SigningProfileProps.go
44 lines (41 loc) · 1.51 KB
/
SigningProfileProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package awssigner
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Construction properties for a Signing Profile object.
//
// Example:
// import "github.com/aws/aws-cdk-go/awscdk"
//
//
// signingProfile := signer.NewSigningProfile(this, jsii.String("SigningProfile"), &SigningProfileProps{
// Platform: signer.Platform_AWS_LAMBDA_SHA384_ECDSA(),
// })
//
// codeSigningConfig := lambda.NewCodeSigningConfig(this, jsii.String("CodeSigningConfig"), &CodeSigningConfigProps{
// SigningProfiles: []iSigningProfile{
// signingProfile,
// },
// })
//
// lambda.NewFunction(this, jsii.String("Function"), &FunctionProps{
// CodeSigningConfig: CodeSigningConfig,
// Runtime: lambda.Runtime_NODEJS_18_X(),
// Handler: jsii.String("index.handler"),
// Code: lambda.Code_FromAsset(path.join(__dirname, jsii.String("lambda-handler"))),
// })
//
type SigningProfileProps struct {
// The Signing Platform available for signing profile.
// See: https://docs.aws.amazon.com/signer/latest/developerguide/gs-platform.html
//
Platform Platform `field:"required" json:"platform" yaml:"platform"`
// The validity period for signatures generated using this signing profile.
// Default: - 135 months.
//
SignatureValidity awscdk.Duration `field:"optional" json:"signatureValidity" yaml:"signatureValidity"`
// Physical name of this Signing Profile.
// Default: - Assigned by CloudFormation (recommended).
//
SigningProfileName *string `field:"optional" json:"signingProfileName" yaml:"signingProfileName"`
}