AWS Native

v0.29.0 published on Thursday, Sep 8, 2022 by Pulumi

getInstanceProfile

Resource Type definition for AWS::IAM::InstanceProfile

Using getInstanceProfile

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getInstanceProfile(args: GetInstanceProfileArgs, opts?: InvokeOptions): Promise<GetInstanceProfileResult>
function getInstanceProfileOutput(args: GetInstanceProfileOutputArgs, opts?: InvokeOptions): Output<GetInstanceProfileResult>
def get_instance_profile(instance_profile_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetInstanceProfileResult
def get_instance_profile_output(instance_profile_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetInstanceProfileResult]
func LookupInstanceProfile(ctx *Context, args *LookupInstanceProfileArgs, opts ...InvokeOption) (*LookupInstanceProfileResult, error)
func LookupInstanceProfileOutput(ctx *Context, args *LookupInstanceProfileOutputArgs, opts ...InvokeOption) LookupInstanceProfileResultOutput

> Note: This function is named LookupInstanceProfile in the Go SDK.

public static class GetInstanceProfile 
{
    public static Task<GetInstanceProfileResult> InvokeAsync(GetInstanceProfileArgs args, InvokeOptions? opts = null)
    public static Output<GetInstanceProfileResult> Invoke(GetInstanceProfileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceProfileResult> getInstanceProfile(GetInstanceProfileArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws-native:iam:getInstanceProfile
  Arguments:
    # Arguments dictionary

The following arguments are supported:

InstanceProfileName string

The name of the instance profile to create.

InstanceProfileName string

The name of the instance profile to create.

instanceProfileName String

The name of the instance profile to create.

instanceProfileName string

The name of the instance profile to create.

instance_profile_name str

The name of the instance profile to create.

instanceProfileName String

The name of the instance profile to create.

getInstanceProfile Result

The following output properties are available:

Arn string

The Amazon Resource Name (ARN) of the instance profile.

Roles List<string>

The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.

Arn string

The Amazon Resource Name (ARN) of the instance profile.

Roles []string

The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.

arn String

The Amazon Resource Name (ARN) of the instance profile.

roles List<String>

The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.

arn string

The Amazon Resource Name (ARN) of the instance profile.

roles string[]

The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.

arn str

The Amazon Resource Name (ARN) of the instance profile.

roles Sequence[str]

The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.

arn String

The Amazon Resource Name (ARN) of the instance profile.

roles List<String>

The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.

Package Details

Repository
https://github.com/pulumi/pulumi-aws-native
License
Apache-2.0