PermissionArgs

data class PermissionArgs(val allowSsh: Output<Boolean>? = null, val allowSudo: Output<Boolean>? = null, val level: Output<String>? = null, val stackId: Output<String>? = null, val userArn: Output<String>? = null) : ConvertibleToJava<PermissionArgs>

Provides an OpsWorks permission resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opsworks.Permission;
import com.pulumi.aws.opsworks.PermissionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myStackPermission = new Permission("myStackPermission", PermissionArgs.builder()
.allowSsh(true)
.allowSudo(true)
.level("iam_only")
.userArn(aws_iam_user.user().arn())
.stackId(aws_opsworks_stack.stack().id())
.build());
}
}

Constructors

Link copied to clipboard
constructor(allowSsh: Output<Boolean>? = null, allowSudo: Output<Boolean>? = null, level: Output<String>? = null, stackId: Output<String>? = null, userArn: Output<String>? = null)

Properties

Link copied to clipboard
val allowSsh: Output<Boolean>? = null

Whether the user is allowed to use SSH to communicate with the instance

Link copied to clipboard
val allowSudo: Output<Boolean>? = null

Whether the user is allowed to use sudo to elevate privileges

Link copied to clipboard
val level: Output<String>? = null

The users permission level. Mus be one of deny, show, deploy, manage, iam_only

Link copied to clipboard
val stackId: Output<String>? = null

The stack to set the permissions for

Link copied to clipboard
val userArn: Output<String>? = null

The user's IAM ARN to set permissions for

Functions

Link copied to clipboard
open override fun toJava(): PermissionArgs