Class Permission
Provides an OpsWorks permission resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var myStackPermission = new Aws.OpsWorks.Permission("myStackPermission", new Aws.OpsWorks.PermissionArgs
{
AllowSsh = true,
AllowSudo = true,
Level = "iam_only",
StackId = aws_opsworks_stack.Stack.Id,
UserArn = aws_iam_user.User.Arn,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.OpsWorks
Assembly: Pulumi.Aws.dll
Syntax
public class Permission : CustomResource
Constructors
View SourcePermission(String, PermissionArgs, CustomResourceOptions)
Create a Permission resource with the given unique name, arguments, and options.
Declaration
public Permission(string name, PermissionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| PermissionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAllowSsh
Whether the user is allowed to use SSH to communicate with the instance
Declaration
public Output<bool> AllowSsh { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
AllowSudo
Whether the user is allowed to use sudo to elevate privileges
Declaration
public Output<bool> AllowSudo { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Level
The users permission level. Mus be one of deny, show, deploy, manage, iam_only
Declaration
public Output<string> Level { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StackId
The stack to set the permissions for
Declaration
public Output<string> StackId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UserArn
The user's IAM ARN to set permissions for
Declaration
public Output<string> UserArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, PermissionState, CustomResourceOptions)
Get an existing Permission resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Permission Get(string name, Input<string> id, PermissionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| PermissionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Permission |