Skip to content

Grant Access

opsworks_grant_access R Documentation

This action can be used only with Windows stacks

Description

This action can be used only with Windows stacks.

Grants RDP access to a Windows instance for a specified time period.

Usage

opsworks_grant_access(InstanceId, ValidForInMinutes)

Arguments

InstanceId

[required] The instance's OpsWorks Stacks ID.

ValidForInMinutes

The length of time (in minutes) that the grant is valid. When the grant expires at the end of this period, the user will no longer be able to use the credentials to log in. If the user is logged in at the time, they are logged out.

Value

A list with the following syntax:

list(
  TemporaryCredential = list(
    Username = "string",
    Password = "string",
    ValidForInMinutes = 123,
    InstanceId = "string"
  )
)

Request syntax

svc$grant_access(
  InstanceId = "string",
  ValidForInMinutes = 123
)