Skip to content
v2.278.0

JwtAuthProperty ​

Struct External

The JWT authentication configuration for Slurm REST API access.

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 jwtAuthProperty: pcs.CfnCluster.JwtAuthProperty = {
  jwtKey: {
    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_auth_property = pcs.CfnCluster.JwtAuthProperty(
    jwt_key=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.*;

JwtAuthProperty jwtAuthProperty = JwtAuthProperty.builder()
        .jwtKey(JwtKeyProperty.builder()
                .secretArn("secretArn")
                .secretVersion("secretVersion")
                .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.PCS;

var jwtAuthProperty = new JwtAuthProperty {
    JwtKey = 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"

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

Properties ​

jwtKeyoptionalIResolvable | CfnCluster.JwtKeyPropertyjwt_keyoptionaltyping.Union[IResolvable, JwtKeyProperty]jwtKeyoptionalIResolvableJwtKeyoptionalIResolvableJwtKeyoptionalinterface{} #
The JWT key for Slurm REST API authentication.