func (c *Client) GetRoleCreationInfo(ctx context.Context, input *CreateCloudAccountInput) (*RoleCreationInfo, error) {

	id := defaultID{}
	err := c.Do(ctx, "GET", ".well-known/vss-configuration", nil, &id)
	if err != nil {
		return nil, err
	}

	createNewRoleInfo := &RoleCreationInfo{
		RoleName: input.RoleName,
		//Need to find out the right way to create external id.
		ExternalID: c.genRandomString(10) + id.ExternalID,
		AwsAccount: id.AccountID,
		Policy:     input.Policy,
	}

	return createNewRoleInfo, nil
}
// GetRoleCreationInfo returns the configuration for creating a new role
GetRoleCreationInfo returns the configuration for creating a new role
// GetRoleCreationInfo returns the configuration for creating a new role
func (c *Client) GetRoleCreationInfo(ctx context.Context, input *CreateCloudAccountInput) (*RoleCreationInfo, error) {
	id := defaultID{}
	err := c.Do(ctx, "GET", ".well-known/vss-configuration", nil, &id)
	if err != nil {
		return nil, err
	}
	createNewRoleInfo := &RoleCreationInfo{
		RoleName: input.RoleName,
		ExternalID: c.genRandomString(10) + id.ExternalID,
		AwsAccount: id.AccountID,
		Policy:     input.Policy,
	}
	return createNewRoleInfo, nil
}
func ( c * Client ) GetRoleCreationInfo ( ctx context . Context , input * CreateCloudAccountInput ) ( * RoleCreationInfo , error ) { id := defaultID { } err := c . Do ( ctx , " " , " " , nil , & id ) if err != nil { return nil , err } createNewRoleInfo := & RoleCreationInfo { RoleName : input . RoleName , ExternalID : c . genRandomString ( 10 ) + id . ExternalID , AwsAccount : id . AccountID , Policy : input . Policy , } return createNewRoleInfo , nil }
GetRoleCreationInfo returns the configuration for creating a new role
GetRoleCreationInfo returns the configuration for creating a new role
//Need to find out the right way to create external id.