I'm confused as to the differences between the 2 ways to create a security rule below: Seems that both methods below has the same signatures:
/** * Create a Security Group Rule. * * @return a new Security Group Rule */ SecurityGroupRule I'm confused as to the differences between the 2 ways to create a security rule below: Seems that both methods below has the same signatures: /** * Create a Security Group Rule. * * @return a new Security Group Rule */ SecurityGroupRule createRuleAllowingCidrBlock(String parentGroup, Ingress ingress, String sourceCidr); versus /** * Create a Security Group Rule. * * @return a new Security Group Rule */ SecurityGroupRule createRuleAllowingSecurityGrou pId(String parentGroup, Ingress ingress, String sourceCidr); (String parentGroup, Ingress ingress, String sourceCidr); versus /** * Create a Security Group Rule. * * @return a new Security Group Rule */ SecurityGroupRule createRuleAllowingSecurityGrou pId(String parentGroup, Ingress ingress, String sourceCidr);