Interface IRoleLookupOptions
Properties for looking up an existing Role.
Inherited Members
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IRoleLookupOptions : IFromRoleArnOptions
Syntax (vb)
Public Interface IRoleLookupOptions Inherits IFromRoleArnOptions
Remarks
ExampleMetadata: infused
Examples
var role = Role.FromLookup(this, "Role", new RoleLookupOptions {
RoleName = "MyExistingRole"
});
Synopsis
Properties
| RoleName | The name of the role to lookup. |
Properties
RoleName
The name of the role to lookup.
string RoleName { get; }
Property Value
Remarks
If the role you want to lookup is a service role, you need to specify the role name without the 'service-role' prefix. For example, if the role arn is 'arn:aws:iam::123456789012:role/service-role/ExampleServiceExecutionRole', you need to specify the role name as 'ExampleServiceExecutionRole'.