JobRunAsUserProperty Struct
Identifies the user for a job.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_deadline as deadline } from 'aws-cdk-lib';
const jobRunAsUserProperty: deadline.CfnQueue.JobRunAsUserProperty = {
runAs: 'runAs',
// the properties below are optional
posix: {
group: 'group',
user: 'user',
},
windows: {
passwordArn: 'passwordArn',
user: 'user',
},
};
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_deadline as deadline
job_run_as_user_property = deadline.CfnQueue.JobRunAsUserProperty(
run_as="runAs",
# the properties below are optional
posix=deadline.CfnQueue.PosixUserProperty(
group="group",
user="user"
),
windows=deadline.CfnQueue.WindowsUserProperty(
password_arn="passwordArn",
user="user"
)
)
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.deadline.*;
JobRunAsUserProperty jobRunAsUserProperty = JobRunAsUserProperty.builder()
.runAs("runAs")
// the properties below are optional
.posix(PosixUserProperty.builder()
.group("group")
.user("user")
.build())
.windows(WindowsUserProperty.builder()
.passwordArn("passwordArn")
.user("user")
.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.Deadline;
var jobRunAsUserProperty = new JobRunAsUserProperty {
RunAs = "runAs",
// the properties below are optional
Posix = new PosixUserProperty {
Group = "group",
User = "user"
},
Windows = new WindowsUserProperty {
PasswordArn = "passwordArn",
User = "user"
}
};
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"
jobRunAsUserProperty := &JobRunAsUserProperty{
RunAs: jsii.String("runAs"),
// the properties below are optional
Posix: &PosixUserProperty{
Group: jsii.String("group"),
User: jsii.String("user"),
},
Windows: &WindowsUserProperty{
PasswordArn: jsii.String("passwordArn"),
User: jsii.String("user"),
},
}
Properties
posixoptionalIResolvable | CfnQueue.PosixUserPropertyposixoptionaltyping.Union[IResolvable, PosixUserProperty]posixoptionalIResolvablePosixoptionalIResolvablePosixoptionalinterface{}#The user and group that the jobs in the queue run as.
Specifies whether the job should run using the queue's system user or if the job should run using the worker agent system user.
windowsoptionalIResolvable | CfnQueue.WindowsUserPropertywindowsoptionaltyping.Union[IResolvable, WindowsUserProperty]windowsoptionalIResolvableWindowsoptionalIResolvableWindowsoptionalinterface{}#Identifies a Microsoft Windows user.