ScriptSourceProperty Struct
The external location of a lifecycle script.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pcs as pcs } from 'aws-cdk-lib';
const scriptSourceProperty: pcs.CfnComputeNodeGroup.ScriptSourceProperty = {
scriptLocation: 'scriptLocation',
// the properties below are optional
checksum: 'checksum',
s3VersionId: 's3VersionId',
};
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_pcs as pcs
script_source_property = pcs.CfnComputeNodeGroup.ScriptSourceProperty(
script_location="scriptLocation",
# the properties below are optional
checksum="checksum",
s3_version_id="s3VersionId"
)
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.pcs.*;
ScriptSourceProperty scriptSourceProperty = ScriptSourceProperty.builder()
.scriptLocation("scriptLocation")
// the properties below are optional
.checksum("checksum")
.s3VersionId("s3VersionId")
.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.PCS;
var scriptSourceProperty = new ScriptSourceProperty {
ScriptLocation = "scriptLocation",
// the properties below are optional
Checksum = "checksum",
S3VersionId = "s3VersionId"
};
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"
scriptSourceProperty := &ScriptSourceProperty{
ScriptLocation: jsii.String("scriptLocation"),
// the properties below are optional
Checksum: jsii.String("checksum"),
S3VersionId: jsii.String("s3VersionId"),
}
Properties
checksumoptionalstringchecksumoptionalstrchecksumoptionalStringChecksumoptionalstringChecksumoptional*string #A 64-character hexadecimal SHA-256 digest used to verify script integrity.
s3VersionIdoptionalstrings3_version_idoptionalstrs3VersionIdoptionalStringS3VersionIdoptionalstringS3VersionIdoptional*string #The S3 object version ID of the script, when stored in a versioned bucket.
scriptLocationstringscript_locationstrscriptLocationStringScriptLocationstringScriptLocation*string required #The S3 URI or HTTPS URL where the script is stored.