AWS SDK for .NET Documentation
WithInstanceProfile Method (instanceProfile)
AmazonAmazon.EC2.ModelRunningInstanceWithInstanceProfile(IAMInstanceProfile) Did this page help you?   Yes   No    Tell us about it...
Sets the IAM Instance Profile (IIP) associated with the instance.
Declaration Syntax
[ObsoleteAttribute("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See for more information.")]
public RunningInstance WithInstanceProfile(
	IAMInstanceProfile instanceProfile
instanceProfile (IAMInstanceProfile)
An Identity and Access Management Instance Profile
Return Value
this instance

Assembly: AWSSDK (Module: AWSSDK) Version: (