// Lists information about the versions of the specified managed policy, including
// the version that is currently set as the policy's default version. For more
// information about managed policies, see Managed Policies and Inline Policies
// (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html)
// in the IAM User Guide.
Lists information about the versions of the specified managed policy, including
the version that is currently set as the policy's default version. For more
information about managed policies, see Managed Policies and Inline Policies

in the IAM User Guide.
// Lists information about the versions of the specified managed policy including // the version that is currently set as the policy ' s default version . For more // information about managed policies see Managed Policies and Inline Policies // ( https : // docs . aws . amazon . com / IAM / latest / UserGuide / policies - managed - vs - inline . html ) // in the IAM User Guide .
func (c *Client) ListPolicyVersions(ctx context.Context, params *ListPolicyVersionsInput, optFns ...func(*Options)) (*ListPolicyVersionsOutput, error) {
	if params == nil {
		params = &ListPolicyVersionsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListPolicyVersions", params, optFns, addOperationListPolicyVersionsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListPolicyVersionsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListPolicyVersions ( ctx context . Context , params * ListPolicyVersionsInput , optFns ... func ( * Options ) ) ( * ListPolicyVersionsOutput , error ) { if params == nil { params = & ListPolicyVersionsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListPolicyVersionsMiddlewares ) if err != nil { return nil , err } out := result . ( * ListPolicyVersionsOutput ) out . ResultMetadata = metadata return out , nil }
Lists information about the versions of the specified managed policy, including
the version that is currently set as the policy's default version.
Lists information about the versions of the specified managed policy including the version that is currently set as the policy ' s default version .