Documentation ¶
Index ¶
- func FindInstanceProfileForPurpose(instanceProfiles []aws.InstanceProfile, purpose string) (*aws.InstanceProfile, error)
- func FindRoleForPurpose(roles []aws.Role, purpose string) (*aws.Role, error)
- func FindSecurityGroupForPurpose(securityGroups []aws.SecurityGroup, purpose string) (*aws.SecurityGroup, error)
- func FindSubnetForPurpose(subnets []aws.Subnet, purpose string) (*aws.Subnet, error)
- func FindSubnetForPurposeAndZone(subnets []aws.Subnet, purpose, zone string) (*aws.Subnet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindInstanceProfileForPurpose ¶
func FindInstanceProfileForPurpose(instanceProfiles []aws.InstanceProfile, purpose string) (*aws.InstanceProfile, error)
FindInstanceProfileForPurpose takes a list of instance profiles and tries to find the first entry whose purpose matches with the given purpose. If no such entry is found then an error will be returned.
func FindRoleForPurpose ¶
FindRoleForPurpose takes a list of roles and tries to find the first entry whose purpose matches with the given purpose. If no such entry is found then an error will be returned.
func FindSecurityGroupForPurpose ¶
func FindSecurityGroupForPurpose(securityGroups []aws.SecurityGroup, purpose string) (*aws.SecurityGroup, error)
FindSecurityGroupForPurpose takes a list of security groups and tries to find the first entry whose purpose matches with the given purpose. If no such entry is found then an error will be returned.
func FindSubnetForPurpose ¶
FindSubnetForPurpose takes a list of subnets and tries to find the first entry whose purpose matches with the given purpose. If no such entry is found then an error will be returned.
func FindSubnetForPurposeAndZone ¶
FindSubnetForPurposeAndZone takes a list of subnets and tries to find the first entry whose purpose and zone matches with the given purpose and zone. If no such entry is found then an error will be returned.
Types ¶
This section is empty.