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

	if args.KeyVaultKeyId == nil {
		return nil, errors.New("invalid value for required argument 'KeyVaultKeyId'")
	}
	if args.ServerId == nil {
		return nil, errors.New("invalid value for required argument 'ServerId'")
	}
	var resource ServerKey
	err := ctx.RegisterResource("azure:postgresql/serverKey:ServerKey", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewServerKey registers a new resource with the given unique name, arguments, and options.
NewServerKey registers a new resource with the given unique name, arguments, and options.
// NewServerKey registers a new resource with the given unique name arguments and options .
func NewServerKey(ctx *pulumi.Context,
	name string, args *ServerKeyArgs, opts ...pulumi.ResourceOption) (*ServerKey, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.KeyVaultKeyId == nil {
		return nil, errors.New("invalid value for required argument 'KeyVaultKeyId'")
	}
	if args.ServerId == nil {
		return nil, errors.New("invalid value for required argument 'ServerId'")
	}
	var resource ServerKey
	err := ctx.RegisterResource("azure:postgresql/serverKey:ServerKey", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewServerKey ( ctx * pulumi . Context , name string , args * ServerKeyArgs , opts ... pulumi . ResourceOption ) ( * ServerKey , error ) { if args == nil { return nil , errors . New ( " " ) } if args . KeyVaultKeyId == nil { return nil , errors . New ( " " ) } if args . ServerId == nil { return nil , errors . New ( " " ) } var resource ServerKey err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewServerKey registers a new resource with the given unique name, arguments, and options.
NewServerKey registers a new resource with the given unique name arguments and options .