func NewImageAccess(ctx *pulumi.Context,
	name string, args *ImageAccessArgs, opts ...pulumi.ResourceOption) (*ImageAccess, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.ImageId == nil {
		return nil, errors.New("invalid value for required argument 'ImageId'")
	}
	if args.MemberId == nil {
		return nil, errors.New("invalid value for required argument 'MemberId'")
	}
	var resource ImageAccess
	err := ctx.RegisterResource("openstack:images/imageAccess:ImageAccess", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewImageAccess registers a new resource with the given unique name, arguments, and options.
NewImageAccess registers a new resource with the given unique name, arguments, and options.
// NewImageAccess registers a new resource with the given unique name arguments and options .
func NewImageAccess(ctx *pulumi.Context,
	name string, args *ImageAccessArgs, opts ...pulumi.ResourceOption) (*ImageAccess, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.ImageId == nil {
		return nil, errors.New("invalid value for required argument 'ImageId'")
	}
	if args.MemberId == nil {
		return nil, errors.New("invalid value for required argument 'MemberId'")
	}
	var resource ImageAccess
	err := ctx.RegisterResource("openstack:images/imageAccess:ImageAccess", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewImageAccess ( ctx * pulumi . Context , name string , args * ImageAccessArgs , opts ... pulumi . ResourceOption ) ( * ImageAccess , error ) { if args == nil { return nil , errors . New ( " " ) } if args . ImageId == nil { return nil , errors . New ( " " ) } if args . MemberId == nil { return nil , errors . New ( " " ) } var resource ImageAccess err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewImageAccess registers a new resource with the given unique name, arguments, and options.
NewImageAccess registers a new resource with the given unique name arguments and options .