Skip to content
v2.278.0

JwtKeyProperty Struct ​

The JWT key stored in AWS Secrets Manager for Slurm REST API authentication.

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 jwtKeyProperty: pcs.CfnCluster.JwtKeyProperty = {
  secretArn: 'secretArn',
  secretVersion: 'secretVersion',
};
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

jwt_key_property = pcs.CfnCluster.JwtKeyProperty(
    secret_arn="secretArn",
    secret_version="secretVersion"
)
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.*;

JwtKeyProperty jwtKeyProperty = JwtKeyProperty.builder()
        .secretArn("secretArn")
        .secretVersion("secretVersion")
        .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 jwtKeyProperty = new JwtKeyProperty {
    SecretArn = "secretArn",
    SecretVersion = "secretVersion"
};
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"

jwtKeyProperty := &JwtKeyProperty{
	SecretArn: jsii.String("secretArn"),
	SecretVersion: jsii.String("secretVersion"),
}

Properties ​

secretArnstringsecret_arnstrsecretArnStringSecretArnstringSecretArn*string required #
The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the JWT key.
secretVersionstringsecret_versionstrsecretVersionStringSecretVersionstringSecretVersion*string required #
The version of the AWS Secrets Manager secret containing the JWT key.