# JobRunAsUserProperty

Identifies the user for a job.

- Source: Generated at build time
- Type last changed: v2.138.0 · 18 Apr 2024

## Example

TypeScript:

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

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

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

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

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"

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

- `posix`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnQueue.PosixUserProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_deadline.CfnQueue.PosixUserProperty.html) — The user and group that the jobs in the queue run as.

- `runAs`: string (required) — Specifies whether the job should run using the queue's system user or if the job should run using the worker agent system user.

- `windows`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnQueue.WindowsUserProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_deadline.CfnQueue.WindowsUserProperty.html) — Identifies a Microsoft Windows user.
