VM::EC...Profile(3pm)
π VM::EC2::Instance::IamProfile π
okay bestie, listen up β this is the VM::EC2::Instance::IamProfile page from the Perl docs (user-contributed ones, the good stuff), and it's literally an object that describes an Amazon EC2 Identity Access Management profile. yes, that's the whole vibe. it's small, it's cute, it does exactly one thing and it does it slay π
β¨ NAME β¨
VM::EC2::Instance::IamProfile β an object describing an Amazon EC2 Identity Access Management profile π
πΈ SYNOPSIS πΈ
here's the whole thing in action, no cap:
use VM::EC2;
$ec2 = VM::EC2->new(...);
my $instance = $ec2->describe_instances('i-123456');
my $profile = $instance->iamInstanceProfile;
print $profile->arn,"\n";
print $profile->id,"\n";
like. you make your $ec2, you grab an instance with describe_instances('i-123456'), you pull the iamInstanceProfile off it, and then you just print the arn and the id. iconic behaviour honestly π¦
π DESCRIPTION π
so this object? it represents an Amazon IAM profile that's associated with an instance. that's it, that's the whole plot. it's giving "small but essential" energy π
β¨ METHODS β¨
these object methods are supported, and yes there are only two, we keep it minimal around here:
arnβ the Amazon resource name (ARN) of the IAM Instance Profile (IIP) that's associated with the instance. yes, they call it an IIP. we love an acronym π«Άidβ the ID of the IIP associated with the instance. short, sweet, to the point β
π STRING OVERLOADING π
the way that this object just knows what to do β when you use it in a string context, it will interpolate the arn. so you can yeet it straight into a string and it'll behave. main character energy fr fr π
π¦ SEE ALSO π¦
go check these out if you're feeling curious:
VM::EC2VM::EC2::Generic
π AUTHOR π
Lincoln Stein <lincoln.stein@gmail.com>. legend behaviour, honestly π
Copyright (c) 2011 Ontario Institute for Cancer Research
This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.
β οΈ okay so real talk β those license files (LICENSEandDISCLAIMER.txt) are not optional reading, bestie. go look at them. the GPL-or-Artistic-2.0 choice is genuinely yours, and the warranty disclaimers are doing actual legal work. respect the paperwork π
and that's a wrap!! π this whole page was served to you by perl v5.38.2, dated 2024-08-10, under the VM::EC...Profile(3pm) banner. mwah, slay, go read your IAM profiles responsibly β¨π
πΈ
π¦ where this page comes from
- debian trixie: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu resolute: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu stonking: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms