Interface ScriptSource.Builder

  • Method Details

    • scriptLocation

      ScriptSource.Builder scriptLocation(String scriptLocation)

      The location of the script. Specify either an Amazon S3 URI in the format s3://bucket-name/key or an HTTPS URL.

      Parameters:
      scriptLocation - The location of the script. Specify either an Amazon S3 URI in the format s3://bucket-name/key or an HTTPS URL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3VersionId

      ScriptSource.Builder s3VersionId(String s3VersionId)

      The Amazon S3 version ID of the script. Use this value to pin the script to a specific version in a versioned Amazon S3 bucket. This value is only valid when scriptLocation is an Amazon S3 URI.

      Parameters:
      s3VersionId - The Amazon S3 version ID of the script. Use this value to pin the script to a specific version in a versioned Amazon S3 bucket. This value is only valid when scriptLocation is an Amazon S3 URI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • checksum

      ScriptSource.Builder checksum(String checksum)

      The SHA-256 checksum of the script content, as a 64-character hexadecimal string. This value is optional. When specified, PCS uses this value to verify the integrity of the downloaded script.

      Parameters:
      checksum - The SHA-256 checksum of the script content, as a 64-character hexadecimal string. This value is optional. When specified, PCS uses this value to verify the integrity of the downloaded script.
      Returns:
      Returns a reference to this object so that method calls can be chained together.