Show / Hide Table of Contents

Class ServiceLinkedRole

Provides an IAM service-linked role.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var elasticbeanstalk = new Aws.Iam.ServiceLinkedRole("elasticbeanstalk", new Aws.Iam.ServiceLinkedRoleArgs
    {
        AwsServiceName = "elasticbeanstalk.amazonaws.com",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ServiceLinkedRole
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.Iam
Assembly: Pulumi.Aws.dll
Syntax
public class ServiceLinkedRole : CustomResource

Constructors

View Source

ServiceLinkedRole(String, ServiceLinkedRoleArgs, CustomResourceOptions)

Create a ServiceLinkedRole resource with the given unique name, arguments, and options.

Declaration
public ServiceLinkedRole(string name, ServiceLinkedRoleArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ServiceLinkedRoleArgs 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

Arn

The Amazon Resource Name (ARN) specifying the role.

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

AwsServiceName

The AWS service to which this role is attached. You use a string similar to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com. To find the full list of services that support service-linked roles, check the docs.

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

CreateDate

The creation date of the IAM role.

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

CustomSuffix

Additional string appended to the role name. Not all AWS services support custom suffixes.

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

Description

The description of the role.

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

Name

The name of the role.

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

Path

The path of the role.

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

UniqueId

The stable and unique string identifying the role.

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

Methods

View Source

Get(String, Input<String>, ServiceLinkedRoleState, CustomResourceOptions)

Get an existing ServiceLinkedRole resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ServiceLinkedRole Get(string name, Input<string> id, ServiceLinkedRoleState 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.

ServiceLinkedRoleState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ServiceLinkedRole
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.