Class GetPolicy
Inheritance
System.Object
GetPolicy
Inherited Members
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 static class GetPolicy
Methods
View SourceInvokeAsync(GetPolicyArgs, InvokeOptions)
This data source can be used to fetch information about a specific IAM policy.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Iam.GetPolicy.InvokeAsync(new Aws.Iam.GetPolicyArgs
{
Arn = "arn:aws:iam::123456789012:policy/UsersManageOwnCredentials",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPolicyArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetPolicyResult> |