opsworks_set_permission: Specifies a user's permissions

Description Usage Arguments Value Request syntax

View source: R/opsworks_operations.R

Description

Specifies a user's permissions. For more information, see Security and Permissions.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

Usage

1
opsworks_set_permission(StackId, IamUserArn, AllowSsh, AllowSudo, Level)

Arguments

StackId

[required] The stack ID.

IamUserArn

[required] The user's IAM ARN. This can also be a federated user's ARN.

AllowSsh

The user is allowed to use SSH to communicate with the instance.

AllowSudo

The user is allowed to use sudo to elevate privileges.

Level

The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level.

  • deny

  • show

  • deploy

  • manage

  • iam_only

For more information about the permissions associated with these levels, see Managing User Permissions.

Value

An empty list.

Request syntax

1
2
3
4
5
6
7
svc$set_permission(
  StackId = "string",
  IamUserArn = "string",
  AllowSsh = TRUE|FALSE,
  AllowSudo = TRUE|FALSE,
  Level = "string"
)

paws.management documentation built on Aug. 23, 2021, 9:11 a.m.