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",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Iam
Assembly: Pulumi.Aws.dll
Syntax
public class ServiceLinkedRole : CustomResource
Constructors
View SourceServiceLinkedRole(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 SourceArn
The Amazon Resource Name (ARN) specifying the role.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
CreateDate
The creation date of the IAM role.
Declaration
public Output<string> CreateDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
Description
The description of the role.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the role.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Path
The path of the role.
Declaration
public Output<string> Path { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UniqueId
The stable and unique string identifying the role.
Declaration
public Output<string> UniqueId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |