Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Permission
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.OpsWorks
Assembly: Pulumi.Aws.dll
Syntax
public class Permission : CustomResource

Constructors

View Source

Permission(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 Source

AllowSsh

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>
View Source

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>
View Source

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>
View Source

StackId

The stack to set the permissions for

Declaration
public Output<string> StackId { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.