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

	if args.Action == nil {
		return nil, errors.New("invalid value for required argument 'Action'")
	}
	if args.ObjectId == nil {
		return nil, errors.New("invalid value for required argument 'ObjectId'")
	}
	if args.ObjectType == nil {
		return nil, errors.New("invalid value for required argument 'ObjectType'")
	}
	if args.TargetTenant == nil {
		return nil, errors.New("invalid value for required argument 'TargetTenant'")
	}
	var resource RbacPolicyV2
	err := ctx.RegisterResource("openstack:networking/rbacPolicyV2:RbacPolicyV2", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewRbacPolicyV2 registers a new resource with the given unique name, arguments, and options.
NewRbacPolicyV2 registers a new resource with the given unique name, arguments, and options.
// NewRbacPolicyV2 registers a new resource with the given unique name arguments and options .
func NewRbacPolicyV2(ctx *pulumi.Context,
	name string, args *RbacPolicyV2Args, opts ...pulumi.ResourceOption) (*RbacPolicyV2, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Action == nil {
		return nil, errors.New("invalid value for required argument 'Action'")
	}
	if args.ObjectId == nil {
		return nil, errors.New("invalid value for required argument 'ObjectId'")
	}
	if args.ObjectType == nil {
		return nil, errors.New("invalid value for required argument 'ObjectType'")
	}
	if args.TargetTenant == nil {
		return nil, errors.New("invalid value for required argument 'TargetTenant'")
	}
	var resource RbacPolicyV2
	err := ctx.RegisterResource("openstack:networking/rbacPolicyV2:RbacPolicyV2", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewRbacPolicyV2 ( ctx * pulumi . Context , name string , args * RbacPolicyV2Args , opts ... pulumi . ResourceOption ) ( * RbacPolicyV2 , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Action == nil { return nil , errors . New ( " " ) } if args . ObjectId == nil { return nil , errors . New ( " " ) } if args . ObjectType == nil { return nil , errors . New ( " " ) } if args . TargetTenant == nil { return nil , errors . New ( " " ) } var resource RbacPolicyV2 err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewRbacPolicyV2 registers a new resource with the given unique name, arguments, and options.
NewRbacPolicyV2 registers a new resource with the given unique name arguments and options .