# ScriptSourceProperty

The external location of a lifecycle script.

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `checksum`: string — A 64-character hexadecimal SHA-256 digest used to verify script integrity.

- `s3VersionId`: string — The S3 object version ID of the script, when stored in a versioned bucket.

- `scriptLocation`: string (required) — The S3 URI or HTTPS URL where the script is stored.
