func (c *aWSIAMRoles) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	opts.Watch = true
	return c.client.Get().
		Namespace(c.ns).
		Resource("awsiamroles").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Watch(ctx)
}
Watch returns a watch.Interface that watches the requested aWSIAMRoles.
package v1
import (
	"context"
	"time"
	v1 "github.com/zalando-incubator/kube-aws-iam-controller/pkg/apis/zalando.org/v1"
	scheme "github.com/zalando-incubator/kube-aws-iam-controller/pkg/client/clientset/versioned/scheme"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	rest "k8s.io/client-go/rest"
)
type AWSIAMRolesGetter interface {
	AWSIAMRoles(namespace string) AWSIAMRoleInterface
}
type AWSIAMRoleInterface interface {
	Create(ctx context.Context, aWSIAMRole *v1.AWSIAMRole, opts metav1.CreateOptions) (*v1.AWSIAMRole, error)
	Update(ctx context.Context, aWSIAMRole *v1.AWSIAMRole, opts metav1.UpdateOptions) (*v1.AWSIAMRole, error)
	UpdateStatus(ctx context.Context, aWSIAMRole *v1.AWSIAMRole, opts metav1.UpdateOptions) (*v1.AWSIAMRole, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.AWSIAMRole, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.AWSIAMRoleList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.AWSIAMRole, err error)
	AWSIAMRoleExpansion
}
type aWSIAMRoles struct {
	client rest.Interface
	ns     string
}
func newAWSIAMRoles(c *ZalandoV1Client, namespace string) *aWSIAMRoles {
	return &aWSIAMRoles{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *aWSIAMRoles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.AWSIAMRole, err error) {
	result = &v1.AWSIAMRole{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("awsiamroles").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do(ctx).
		Into(result)
	return
}
func (c *aWSIAMRoles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AWSIAMRoleList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v1.AWSIAMRoleList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("awsiamroles").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do(ctx).
		Into(result)
	return
}