Skip to content
v2.276.0

CodeSigningProperty Struct Added in v2.276.0 ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const codeSigningProperty: iot.CfnOTAUpdate.CodeSigningProperty = {
  awsSignerJobId: 'awsSignerJobId',
  customCodeSigning: {
    certificateChain: {
      certificateName: 'certificateName',
      inlineDocument: 'inlineDocument',
    },
    hashAlgorithm: 'hashAlgorithm',
    signature: {
      inlineDocument: 'inlineDocument',
    },
    signatureAlgorithm: 'signatureAlgorithm',
  },
  startSigningJobParameter: {
    destination: {
      s3Destination: {
        bucket: 'bucket',
        prefix: 'prefix',
      },
    },
    signingProfileName: 'signingProfileName',
    signingProfileParameter: {
      certificateArn: 'certificateArn',
      certificatePathOnDevice: 'certificatePathOnDevice',
      platform: 'platform',
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot

code_signing_property = iot.CfnOTAUpdate.CodeSigningProperty(
    aws_signer_job_id="awsSignerJobId",
    custom_code_signing=iot.CfnOTAUpdate.CustomCodeSigningProperty(
        certificate_chain=iot.CfnOTAUpdate.CodeSigningCertificateChainProperty(
            certificate_name="certificateName",
            inline_document="inlineDocument"
        ),
        hash_algorithm="hashAlgorithm",
        signature=iot.CfnOTAUpdate.CodeSigningSignatureProperty(
            inline_document="inlineDocument"
        ),
        signature_algorithm="signatureAlgorithm"
    ),
    start_signing_job_parameter=iot.CfnOTAUpdate.StartSigningJobParameterProperty(
        destination=iot.CfnOTAUpdate.DestinationProperty(
            s3_destination=iot.CfnOTAUpdate.S3DestinationProperty(
                bucket="bucket",
                prefix="prefix"
            )
        ),
        signing_profile_name="signingProfileName",
        signing_profile_parameter=iot.CfnOTAUpdate.SigningProfileParameterProperty(
            certificate_arn="certificateArn",
            certificate_path_on_device="certificatePathOnDevice",
            platform="platform"
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;

CodeSigningProperty codeSigningProperty = CodeSigningProperty.builder()
        .awsSignerJobId("awsSignerJobId")
        .customCodeSigning(CustomCodeSigningProperty.builder()
                .certificateChain(CodeSigningCertificateChainProperty.builder()
                        .certificateName("certificateName")
                        .inlineDocument("inlineDocument")
                        .build())
                .hashAlgorithm("hashAlgorithm")
                .signature(CodeSigningSignatureProperty.builder()
                        .inlineDocument("inlineDocument")
                        .build())
                .signatureAlgorithm("signatureAlgorithm")
                .build())
        .startSigningJobParameter(StartSigningJobParameterProperty.builder()
                .destination(DestinationProperty.builder()
                        .s3Destination(S3DestinationProperty.builder()
                                .bucket("bucket")
                                .prefix("prefix")
                                .build())
                        .build())
                .signingProfileName("signingProfileName")
                .signingProfileParameter(SigningProfileParameterProperty.builder()
                        .certificateArn("certificateArn")
                        .certificatePathOnDevice("certificatePathOnDevice")
                        .platform("platform")
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;

var codeSigningProperty = new CodeSigningProperty {
    AwsSignerJobId = "awsSignerJobId",
    CustomCodeSigning = new CustomCodeSigningProperty {
        CertificateChain = new CodeSigningCertificateChainProperty {
            CertificateName = "certificateName",
            InlineDocument = "inlineDocument"
        },
        HashAlgorithm = "hashAlgorithm",
        Signature = new CodeSigningSignatureProperty {
            InlineDocument = "inlineDocument"
        },
        SignatureAlgorithm = "signatureAlgorithm"
    },
    StartSigningJobParameter = new StartSigningJobParameterProperty {
        Destination = new DestinationProperty {
            S3Destination = new S3DestinationProperty {
                Bucket = "bucket",
                Prefix = "prefix"
            }
        },
        SigningProfileName = "signingProfileName",
        SigningProfileParameter = new SigningProfileParameterProperty {
            CertificateArn = "certificateArn",
            CertificatePathOnDevice = "certificatePathOnDevice",
            Platform = "platform"
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

codeSigningProperty := &CodeSigningProperty{
	AwsSignerJobId: jsii.String("awsSignerJobId"),
	CustomCodeSigning: &CustomCodeSigningProperty{
		CertificateChain: &CodeSigningCertificateChainProperty{
			CertificateName: jsii.String("certificateName"),
			InlineDocument: jsii.String("inlineDocument"),
		},
		HashAlgorithm: jsii.String("hashAlgorithm"),
		Signature: &CodeSigningSignatureProperty{
			InlineDocument: jsii.String("inlineDocument"),
		},
		SignatureAlgorithm: jsii.String("signatureAlgorithm"),
	},
	StartSigningJobParameter: &StartSigningJobParameterProperty{
		Destination: &DestinationProperty{
			S3Destination: &S3DestinationProperty{
				Bucket: jsii.String("bucket"),
				Prefix: jsii.String("prefix"),
			},
		},
		SigningProfileName: jsii.String("signingProfileName"),
		SigningProfileParameter: &SigningProfileParameterProperty{
			CertificateArn: jsii.String("certificateArn"),
			CertificatePathOnDevice: jsii.String("certificatePathOnDevice"),
			Platform: jsii.String("platform"),
		},
	},
}

Properties ​

awsSignerJobIdoptionalstringaws_signer_job_idoptionalstrawsSignerJobIdoptionalStringAwsSignerJobIdoptionalstringAwsSignerJobIdoptional*string#
The ID of the AWSSignerJob which was created to sign the file.
customCodeSigningoptionalIResolvable | CfnOTAUpdate.CustomCodeSigningPropertycustom_code_signingoptionaltyping.Union[IResolvable, CustomCodeSigningProperty]customCodeSigningoptionalIResolvableCustomCodeSigningoptionalIResolvableCustomCodeSigningoptionalinterface{}#
startSigningJobParameteroptionalIResolvable | CfnOTAUpdate.StartSigningJobParameterPropertystart_signing_job_parameteroptionaltyping.Union[IResolvable, StartSigningJobParameterProperty]startSigningJobParameteroptionalIResolvableStartSigningJobParameteroptionalIResolvableStartSigningJobParameteroptionalinterface{}#